Skip to main content

flox bootstrap engine

Create your projects in seconds with flox using shared templates.

Installation

$ flox plugin install flox-bootstrap

or

$ pip install flox-bootstrap

Configuration

You can use this plugin without any configuration, but if you like you can add your own custom repository which may contain additional or customised templates.

$ flox config --plugin bootstrap --scope=user

Bootstrap project using templates

$ flox bootstrap python                                                                                                                                                                                                                                                                            12:14:05
 → Create library project [y/N]: n
 → Python Version [3.8.12]:
 
$ ls -la .
drwxr-xr-x   4 me  staff  128 Jan 13 11:54 .flox
drwxr-xr-x  13 me  staff  416 Jan 13 12:14 .git
-rw-r--r--   1 me  staff    6 Jan 13 12:14 .python-version
-rw-r--r--   1 me  staff   14 Jan 13 11:54 README.md
drwxr-xr-x   3 me  staff   96 Jan 13 11:54 flox_project
-rw-r--r--   1 me  staff  454 Jan 13 12:14 pyproject.toml

flox templates may contain extra parameters which can be changed during bootstrap proces.

Template repository structure

You can create your own repository or fork default one https://github.com/getflox/flox-templates Your template repository should be structured like that:

.
├── github-actions
│         ├── hooks.py
│         └── template
├── python
│         ├── template
│         │         ├── <project_name_underscore>
│         │         │         └── __init__.py
│         │         └── pyproject.toml.j2
│         └── variables.py
└── serverless-python
    ├── template
    │         ├── package.json.j2
    │         └── serverless.yml.py.j2
    └── variables.py

Where:

  • first level directory is a name of the template which can be passed as parameter to bootstrap command
  • variables.py is a simple python script containing one variable called VARIABLES which should be a list of ParamDefinition objects defining parameters
  • hooks.py a simple script which may contain two functions pre_install and post_install which will be executed before and after bootstrap template is added to your project. additionally pre_install function will get all variables and all features installed for given project with the ability to filter template files which should be installed

Metadata

Release files for flox-bootstrap 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flox-bootstrap 0.1.3
File Size Uploaded Provenance
flox-bootstrap-0.1.3.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for flox-bootstrap 0.1.3
File Interpreter ABI Platform
flox_bootstrap-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / flox-bootstrap-0.1.3.tar.gz

Download URL flox-bootstrap-0.1.3.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6d805667f2577ce0ff546ca1a138c1f875c4f34947d6da4aefddb39c48c981a7
BLAKE2b-256 checksum
How to use checksums
8f2481bb0b64bc02d0d6639224926197235ee1aa6f6c26d5e446df656dcf0620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.8.12 Linux/5.11.0-1025-azure

Release files / flox_bootstrap-0.1.3-py3-none-any.whl

Download URL flox_bootstrap-0.1.3-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b6f9e1c0935517fd71d899d9f70363e1321aa379f1d513c36309d58c56ed63e
BLAKE2b-256 checksum
How to use checksums
621fbd088de637b9a846f8804d44d6e5d938a69a1c42cff1d81a6d6c44bda5d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.8.12 Linux/5.11.0-1025-azure

Security for flox-bootstrap 0.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page