homecloud
W.I.P/ more detailed readme to come
A command line tool for generating the template files needed to integrate fastapi, uvicorn, and a requests based client into a Python project
over a local network.
Devices on the local network running a client can automatically find the server for their app name at startup.
Installation
Install with
pip install homecloud
Usage
Navigate to your project directory in the terminal and run
>homecloud
Several files should have been generated. Assuming the project directory is called myapp, you should see the following files:
homecloud_config.toml myapp_client.py myapp_get_routes.py myapp_post_routes.py myapp_request_models.py myapp_server.py
The server for myapp can be started by running the myapp_server.py script.
Any device on the local network that runs code that creates a myapp.MyappClient object
should be able to automatically find the ip address and port of the myapp server.
Other myapp_*_routes.py files can be generated by passing their names with the -r/--routes
switch to the homecloud tool.
If, earlier, we ran
>homecloud -r trace put
then we would have generated the previous files as well as
myapp_trace_routes.py myapp_put_routes.py
The help display for homecloud:
>homecloud -h
usage: homecloud [-h] [-r [ROUTES ...]] [-d DESTINATION] [app_name]
positional arguments:
app_name The name of the app to generate files for. If a value isn't provided, the folder name of the current working directory will be used.
options:
-h, --help show this help message and exit
-r [ROUTES ...], --routes [ROUTES ...]
The routes to generate files for in addition to 'get' and 'post' routes.
-d DESTINATION, --destination DESTINATION
The directory to save the generated files to. By default, uses the current working directory.
Metadata
Release files for homecloud 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| homecloud-0.3.4.tar.gz | 11.8 kB | Without provenance | Details for homecloud-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| homecloud-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for homecloud-0.3.4-py3-none-any.whl |
Total release size: 27.5 kB
Release files / homecloud-0.3.4.tar.gz
| Download URL | homecloud-0.3.4.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9553fc430236947d57173b137abfbb92b880b474ce74a105918b4fbf8571aa7
|
|
BLAKE2b-256 checksum How to use checksums |
c61220498eaf0ef58ddf1ce930a10809f24af2b7755366ccdebd19a769fc0799
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / homecloud-0.3.4-py3-none-any.whl
| Download URL | homecloud-0.3.4-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fb14a69d6e31075852d809d4356cb9d78d3d47725eb108a7d155f1bdba77447
|
|
BLAKE2b-256 checksum How to use checksums |
5e5d5c53223c7337bcb7910ed9a62ccce2edc9d68fca522e1bc925e201f88d11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for homecloud 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.