labmachine
This is a POC with two purposes: refactoring a cluster package from labfunctions and allowing the creation and self registering of a jupyter instance.
This work was inpired by Let Deep Learning VMs and Jupyter notebooks burn the midnight oil for you
Right now only works for Google Cloud but should be easy to expand to other providers.
For examples, see examples
See infra_[cpu|gpu].py and lab_[cpu|gpu].py
infra_* files are raw implementacion of the cluster library.
Lab files are abstractions built over this library for jupyter lab provisioning.
Features
- VM creation (Google)
- Jupyter on docker
- SSL certificates (ZeroSSL & Caddy)
- Volumes managments (Creation, Resizing, deletion, formating, etc)
- DNS A record creation (Google, Cloudflare)
- Automatic shutdown by inactivity (by Jupyter)
- GPU Provisioning (nvidia-smi installation, docker configuration, etc)
- Linux image creation (Packer)
- Entities types for autocompletion
- Logging into cloud provider log service
Documentation
Next work
Release files for labmachine 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| labmachine-0.6.0.tar.gz | 35.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| labmachine-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 85.4 kB
Release files / labmachine-0.6.0.tar.gz
| Download URL | labmachine-0.6.0.tar.gz |
|---|---|
| Size | 35.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
617bd5b754a755ecd486594b7474e5b72f108655bc81e783b1bf2447f078135a
|
|
BLAKE2b-256 checksum How to use checksums |
84fd394f5ead1f21bbbea9a19db8b121dc4525d64403ae60e76d149b8f752a52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Linux/5.19.15_1
|
Release files / labmachine-0.6.0-py3-none-any.whl
| Download URL | labmachine-0.6.0-py3-none-any.whl |
|---|---|
| Size | 49.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16d8eea92708e3d03451d0ddef57ca09073c732666eaae55f0de8dcb78f1dab2
|
|
BLAKE2b-256 checksum How to use checksums |
c4b03161f7e4cddcfdc9e9f42e44be08f5350dcaaff862a30cb27e347752bba4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Linux/5.19.15_1
|