Загрузить файлы в «venv/Lib/site-packages/watchfiles-1.2.0.dist-info»
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
pip
|
||||||
148
venv/Lib/site-packages/watchfiles-1.2.0.dist-info/METADATA
Normal file
148
venv/Lib/site-packages/watchfiles-1.2.0.dist-info/METADATA
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: watchfiles
|
||||||
|
Version: 1.2.0
|
||||||
|
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.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: 3.15
|
||||||
|
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.10
|
||||||
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
||||||
|
Project-URL: Changelog, https://github.com/samuelcolvin/watchfiles/releases
|
||||||
|
Project-URL: Documentation, https://watchfiles.helpmanual.io
|
||||||
|
Project-URL: Funding, https://github.com/sponsors/samuelcolvin
|
||||||
|
Project-URL: Homepage, https://github.com/samuelcolvin/watchfiles
|
||||||
|
Project-URL: Source, https://github.com/samuelcolvin/watchfiles
|
||||||
|
|
||||||
|
# watchfiles
|
||||||
|
|
||||||
|
[](https://github.com/samuelcolvin/watchfiles/actions/workflows/ci.yml?query=branch%3Amain)
|
||||||
|
[](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.10 - 3.15.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install watchfiles
|
||||||
|
```
|
||||||
|
|
||||||
|
Binaries are available for most architectures on Linux, MacOS and Windows ([learn more](https://watchfiles.helpmanual.io/#installation)).
|
||||||
|
|
||||||
|
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
venv/Lib/site-packages/watchfiles-1.2.0.dist-info/RECORD
Normal file
25
venv/Lib/site-packages/watchfiles-1.2.0.dist-info/RECORD
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
../../Scripts/watchfiles.exe,sha256=UvtCCA8wcoZFHntxTnLrSicHHU_hGfkG0tAXt7EU3-4,108369
|
||||||
|
watchfiles-1.2.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||||
|
watchfiles-1.2.0.dist-info/METADATA,sha256=ExAlgsyrRiK-NhkvcW6QeHCGCs0761KLVy1v3HZIg9I,4985
|
||||||
|
watchfiles-1.2.0.dist-info/RECORD,,
|
||||||
|
watchfiles-1.2.0.dist-info/WHEEL,sha256=eBGhi3OBjShfkato4dop_2MU-x5MJXrOBEBOPEFTPyw,97
|
||||||
|
watchfiles-1.2.0.dist-info/entry_points.txt,sha256=s1Dpa2d_KKBy-jKREWW60Z3GoRZ3JpCEo_9iYDt6hOQ,48
|
||||||
|
watchfiles-1.2.0.dist-info/licenses/LICENSE,sha256=LUCgM0a97Y2qS9ItI4JabyVooIIPvvdqwFuuU0Qh4Yk,1112
|
||||||
|
watchfiles-1.2.0.dist-info/sboms/watchfiles_rust_notify.cyclonedx.json,sha256=d3fL6VGDfVnp3RWzv3x1atk5oygfG69ruuC0whzERWs,33926
|
||||||
|
watchfiles/__init__.py,sha256=LKmDAbDbm78xfyhVQ-W_6TWfT1Cg53NUaHqNhwu2plo,381
|
||||||
|
watchfiles/__main__.py,sha256=g9iBs8xxX6Yik7cmgllQkpBN8C4JNoZVsEOyCCLCyFU,63
|
||||||
|
watchfiles/__pycache__/__init__.cpython-314.pyc,,
|
||||||
|
watchfiles/__pycache__/__main__.cpython-314.pyc,,
|
||||||
|
watchfiles/__pycache__/cli.cpython-314.pyc,,
|
||||||
|
watchfiles/__pycache__/filters.cpython-314.pyc,,
|
||||||
|
watchfiles/__pycache__/main.cpython-314.pyc,,
|
||||||
|
watchfiles/__pycache__/run.cpython-314.pyc,,
|
||||||
|
watchfiles/__pycache__/version.cpython-314.pyc,,
|
||||||
|
watchfiles/_rust_notify.cp314-win_amd64.pyd,sha256=jhJLF0_lJWxAW8EVCSFWYPR4R10r-mLF8J8QcFqL4qs,634880
|
||||||
|
watchfiles/_rust_notify.pyi,sha256=NRGJHTTyIUrUOLxdB-xOMlxpJqKw9dl9XgZ7-ZDI9ro,4864
|
||||||
|
watchfiles/cli.py,sha256=uhjdisNdfjR2VVJ1liHBdD8mx4zNjc4YEojjphbDF_o,7921
|
||||||
|
watchfiles/filters.py,sha256=DNW7uqXHVdh6WXA8IZPp2EeRrsKmmYf7s4a26ccxMIA,5269
|
||||||
|
watchfiles/main.py,sha256=tRSOL22HBnyTbN5G_dAuId3SMQTB2vOjRYYG9q2DqqE,15539
|
||||||
|
watchfiles/py.typed,sha256=5_E2MNyI4Mzg8TH53HFdXg0iSevlmHpdZSNnJVUYbMg,70
|
||||||
|
watchfiles/run.py,sha256=PxjaOqBGdgMsxtQvyO7zyDMzi-U8FGU5LIktT34OxrM,15683
|
||||||
|
watchfiles/version.py,sha256=dbZJrjIgVt2QedB7aWTu41SUWaPDjUCabWBao2Ow1SU,90
|
||||||
4
venv/Lib/site-packages/watchfiles-1.2.0.dist-info/WHEEL
Normal file
4
venv/Lib/site-packages/watchfiles-1.2.0.dist-info/WHEEL
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Wheel-Version: 1.0
|
||||||
|
Generator: maturin (1.13.3)
|
||||||
|
Root-Is-Purelib: false
|
||||||
|
Tag: cp314-cp314-win_amd64
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
[console_scripts]
|
||||||
|
watchfiles=watchfiles.cli:cli
|
||||||
Reference in New Issue
Block a user