second commit
This commit is contained in:
1
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/INSTALLER
vendored
Normal file
1
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/INSTALLER
vendored
Normal file
@ -0,0 +1 @@
|
||||
pip
|
151
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/METADATA
vendored
Normal file
151
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/METADATA
vendored
Normal file
@ -0,0 +1,151 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: watchfiles
|
||||
Version: 1.0.3
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Environment :: Console
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: 3.13
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Intended Audience :: Information Technology
|
||||
Classifier: Intended Audience :: System Administrators
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Operating System :: POSIX :: Linux
|
||||
Classifier: Operating System :: Microsoft :: Windows
|
||||
Classifier: Operating System :: MacOS
|
||||
Classifier: Environment :: MacOS X
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Classifier: Topic :: System :: Filesystems
|
||||
Classifier: Framework :: AnyIO
|
||||
Requires-Dist: anyio >=3.0.0
|
||||
License-File: LICENSE
|
||||
Summary: Simple, modern and high performance file watching and code reload in python.
|
||||
Home-Page: https://github.com/samuelcolvin/watchfiles
|
||||
Author-email: Samuel Colvin <s@muelcolvin.com>
|
||||
License: MIT
|
||||
Requires-Python: >=3.9
|
||||
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
||||
Project-URL: Homepage, https://github.com/samuelcolvin/watchfiles
|
||||
Project-URL: Documentation, https://watchfiles.helpmanual.io
|
||||
Project-URL: Funding, https://github.com/sponsors/samuelcolvin
|
||||
Project-URL: Source, https://github.com/samuelcolvin/watchfiles
|
||||
Project-URL: Changelog, https://github.com/samuelcolvin/watchfiles/releases
|
||||
|
||||
# watchfiles
|
||||
|
||||
[](https://github.com/samuelcolvin/watchfiles/actions?query=event%3Apush+branch%3Amain+workflow%3Aci)
|
||||
[](https://codecov.io/gh/samuelcolvin/watchfiles)
|
||||
[](https://pypi.python.org/pypi/watchfiles)
|
||||
[](https://anaconda.org/conda-forge/watchfiles)
|
||||
[](https://github.com/samuelcolvin/watchfiles/blob/main/LICENSE)
|
||||
|
||||
Simple, modern and high performance file watching and code reload in python.
|
||||
|
||||
---
|
||||
|
||||
**Documentation**: [watchfiles.helpmanual.io](https://watchfiles.helpmanual.io)
|
||||
|
||||
**Source Code**: [github.com/samuelcolvin/watchfiles](https://github.com/samuelcolvin/watchfiles)
|
||||
|
||||
---
|
||||
|
||||
Underlying file system notifications are handled by the [Notify](https://github.com/notify-rs/notify) rust library.
|
||||
|
||||
This package was previously named "watchgod",
|
||||
see [the migration guide](https://watchfiles.helpmanual.io/migrating/) for more information.
|
||||
|
||||
## Installation
|
||||
|
||||
**watchfiles** requires Python 3.8 - 3.13.
|
||||
|
||||
```bash
|
||||
pip install watchfiles
|
||||
```
|
||||
|
||||
Binaries are available for:
|
||||
|
||||
* **Linux**: `x86_64`, `aarch64`, `i686`, `armv7l`, `musl-x86_64` & `musl-aarch64`
|
||||
* **MacOS**: `x86_64` & `arm64`
|
||||
* **Windows**: `amd64` & `win32`
|
||||
|
||||
Otherwise, you can install from source which requires Rust stable to be installed.
|
||||
|
||||
## Usage
|
||||
|
||||
Here are some examples of what **watchfiles** can do:
|
||||
|
||||
### `watch` Usage
|
||||
|
||||
```py
|
||||
from watchfiles import watch
|
||||
|
||||
for changes in watch('./path/to/dir'):
|
||||
print(changes)
|
||||
```
|
||||
See [`watch` docs](https://watchfiles.helpmanual.io/api/watch/#watchfiles.watch) for more details.
|
||||
|
||||
### `awatch` Usage
|
||||
|
||||
```py
|
||||
import asyncio
|
||||
from watchfiles import awatch
|
||||
|
||||
async def main():
|
||||
async for changes in awatch('/path/to/dir'):
|
||||
print(changes)
|
||||
|
||||
asyncio.run(main())
|
||||
```
|
||||
See [`awatch` docs](https://watchfiles.helpmanual.io/api/watch/#watchfiles.awatch) for more details.
|
||||
|
||||
### `run_process` Usage
|
||||
|
||||
```py
|
||||
from watchfiles import run_process
|
||||
|
||||
def foobar(a, b, c):
|
||||
...
|
||||
|
||||
if __name__ == '__main__':
|
||||
run_process('./path/to/dir', target=foobar, args=(1, 2, 3))
|
||||
```
|
||||
See [`run_process` docs](https://watchfiles.helpmanual.io/api/run_process/#watchfiles.run_process) for more details.
|
||||
|
||||
### `arun_process` Usage
|
||||
|
||||
```py
|
||||
import asyncio
|
||||
from watchfiles import arun_process
|
||||
|
||||
def foobar(a, b, c):
|
||||
...
|
||||
|
||||
async def main():
|
||||
await arun_process('./path/to/dir', target=foobar, args=(1, 2, 3))
|
||||
|
||||
if __name__ == '__main__':
|
||||
asyncio.run(main())
|
||||
```
|
||||
See [`arun_process` docs](https://watchfiles.helpmanual.io/api/run_process/#watchfiles.arun_process) for more details.
|
||||
|
||||
## CLI
|
||||
|
||||
**watchfiles** also comes with a CLI for running and reloading code. To run `some command` when files in `src` change:
|
||||
|
||||
```
|
||||
watchfiles "some command" src
|
||||
```
|
||||
|
||||
For more information, see [the CLI docs](https://watchfiles.helpmanual.io/cli/).
|
||||
|
||||
Or run
|
||||
|
||||
```bash
|
||||
watchfiles --help
|
||||
```
|
||||
|
25
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/RECORD
vendored
Normal file
25
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/RECORD
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
../../../bin/watchfiles,sha256=aA-vvQJdV5gbOsMsZ0baZmjiNH6zbW6h6JfJ2BLFfHs,248
|
||||
watchfiles-1.0.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
watchfiles-1.0.3.dist-info/METADATA,sha256=azuRRRB9-bnaki8jDxh93wi7NE-AN0wI1NS4RJnMdC0,4872
|
||||
watchfiles-1.0.3.dist-info/RECORD,,
|
||||
watchfiles-1.0.3.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
watchfiles-1.0.3.dist-info/WHEEL,sha256=AmAUaTZ4DVfLTuR-ZO23MbJhraCCBktLKlayDTq4_o0,104
|
||||
watchfiles-1.0.3.dist-info/entry_points.txt,sha256=s1Dpa2d_KKBy-jKREWW60Z3GoRZ3JpCEo_9iYDt6hOQ,48
|
||||
watchfiles-1.0.3.dist-info/licenses/LICENSE,sha256=Nrb5inpC3jnhTxxutZgxzblMwRsF7q0xyB-4-FHRdQs,1110
|
||||
watchfiles/__init__.py,sha256=IRlM9KOSedMzF1fvLr7yEHPVS-UFERNThlB-tmWI8yU,364
|
||||
watchfiles/__main__.py,sha256=JgErYkiskih8Y6oRwowALtR-rwQhAAdqOYWjQraRIPI,59
|
||||
watchfiles/__pycache__/__init__.cpython-311.pyc,,
|
||||
watchfiles/__pycache__/__main__.cpython-311.pyc,,
|
||||
watchfiles/__pycache__/cli.cpython-311.pyc,,
|
||||
watchfiles/__pycache__/filters.cpython-311.pyc,,
|
||||
watchfiles/__pycache__/main.cpython-311.pyc,,
|
||||
watchfiles/__pycache__/run.cpython-311.pyc,,
|
||||
watchfiles/__pycache__/version.cpython-311.pyc,,
|
||||
watchfiles/_rust_notify.cpython-311-darwin.so,sha256=HRfNwtnJqZl9VD2EIW24JIQ-WEw8kBYNTkQgAzqT0ps,928712
|
||||
watchfiles/_rust_notify.pyi,sha256=q5FQkXgBJEFPt9RCf7my4wP5RM1FwSVpqf221csyebg,4753
|
||||
watchfiles/cli.py,sha256=DHMI0LfT7hOrWai_Y4RP_vvTvVdtcDaioixXLiv2pG4,7707
|
||||
watchfiles/filters.py,sha256=U0zXGOeg9dMHkT51-56BKpRrWIu95lPq0HDR_ZB4oDE,5139
|
||||
watchfiles/main.py,sha256=MYxkB3BmJBwHJZia7bMS4XNcG1r8wcPzPnTMKz2KCP8,15237
|
||||
watchfiles/py.typed,sha256=MS4Na3to9VTGPy_8wBQM_6mNKaX4qIpi5-w7_LZB-8I,69
|
||||
watchfiles/run.py,sha256=llxWtt2GHy-0OjR0ZDW5ksNdB2Wl3XIfKu5DcMgdxYM,15350
|
||||
watchfiles/version.py,sha256=NRWUnkZ32DamsNKV20EetagIGTLDMMUnqDWVGFFA2WQ,85
|
0
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/REQUESTED
vendored
Normal file
0
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/REQUESTED
vendored
Normal file
4
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/WHEEL
vendored
Normal file
4
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/WHEEL
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: maturin (1.7.8)
|
||||
Root-Is-Purelib: false
|
||||
Tag: cp311-cp311-macosx_11_0_arm64
|
2
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/entry_points.txt
vendored
Normal file
2
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/entry_points.txt
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
[console_scripts]
|
||||
watchfiles=watchfiles.cli:cli
|
21
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/licenses/LICENSE
vendored
Normal file
21
env/lib/python3.11/site-packages/watchfiles-1.0.3.dist-info/licenses/LICENSE
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2017, 2018, 2019, 2020, 2021, 2022 Samuel Colvin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
Reference in New Issue
Block a user