livewire


Namelivewire JSON
Version 0.0.11 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-08-04 13:09:08
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords livewire development tools
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # livewire

A simple, fast, and lightweight live reload server for python modules.

## Server

The webserver is a simple python server that listens for two types of requests:
- sync_init, unload all modules, remove all the local filesystem and writes that files in the request payload, exec the entrypoint.py
- sync_target, unload all modules, update the deltas, exec the entrypoint.py

Example 
`python -m livewire.server`

Programmatically
```python
from livewire.server import start_hotreload_for
start_hotreload_for('/tmp/some-folder')
# the server is now running, you should block the main thread otherwise the process will exit
```

## Watch
The client watches the filesystem for changes and sends the requests to the server.

Example
`python -m livewire.watch --push-to=127.0.0.1`

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "livewire",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "livewire, development, tools",
    "author": null,
    "author_email": "Simone Giacomelli <simone.giacomelli@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/8b/4e/5313dd9373b4a3ae80f49e1a9aaad58e505eb09e6477089b5be2458b2556/livewire-0.0.11.tar.gz",
    "platform": null,
    "description": "# livewire\n\nA simple, fast, and lightweight live reload server for python modules.\n\n## Server\n\nThe webserver is a simple python server that listens for two types of requests:\n- sync_init, unload all modules, remove all the local filesystem and writes that files in the request payload, exec the entrypoint.py\n- sync_target, unload all modules, update the deltas, exec the entrypoint.py\n\nExample \n`python -m livewire.server`\n\nProgrammatically\n```python\nfrom livewire.server import start_hotreload_for\nstart_hotreload_for('/tmp/some-folder')\n# the server is now running, you should block the main thread otherwise the process will exit\n```\n\n## Watch\nThe client watches the filesystem for changes and sends the requests to the server.\n\nExample\n`python -m livewire.watch --push-to=127.0.0.1`\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "0.0.11",
    "project_urls": {
        "Homepage": "https://github.com/simonegiacomelli/livewire",
        "Issues": "https://github.com/simonegiacomelli/livewire/issues"
    },
    "split_keywords": [
        "livewire",
        " development",
        " tools"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e54046853f40d1849e13fa449b546141d83dd56515b7142f0e887884a8539a2",
                "md5": "0a1ad9ec045fb99df44c6ad64418a652",
                "sha256": "438af38adab20fbf485db6a6821d16606ae16af2ac02b82ff6cb54cab406e7f1"
            },
            "downloads": -1,
            "filename": "livewire-0.0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0a1ad9ec045fb99df44c6ad64418a652",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 15541,
            "upload_time": "2024-08-04T13:09:06",
            "upload_time_iso_8601": "2024-08-04T13:09:06.807221Z",
            "url": "https://files.pythonhosted.org/packages/1e/54/046853f40d1849e13fa449b546141d83dd56515b7142f0e887884a8539a2/livewire-0.0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b4e5313dd9373b4a3ae80f49e1a9aaad58e505eb09e6477089b5be2458b2556",
                "md5": "e9f6250006a4786bfc86bf0a819a7cc8",
                "sha256": "414748dd0723411a053a929164b4fbb02425d013123c4e9b28ce469c65c54d76"
            },
            "downloads": -1,
            "filename": "livewire-0.0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "e9f6250006a4786bfc86bf0a819a7cc8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 11078,
            "upload_time": "2024-08-04T13:09:08",
            "upload_time_iso_8601": "2024-08-04T13:09:08.519604Z",
            "url": "https://files.pythonhosted.org/packages/8b/4e/5313dd9373b4a3ae80f49e1a9aaad58e505eb09e6477089b5be2458b2556/livewire-0.0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-04 13:09:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "simonegiacomelli",
    "github_project": "livewire",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "livewire"
}
        
Elapsed time: 2.52832s