💫 The python SDK for developing apps for the numerous platform.
📥 Simply install the SDK into your python environment with:
pip install numerous
🛠 And then you can simply enter the following command, to get a list of possible commands.
numerous
👩🏼🎓 See the numerous documentation for more information!
Most common tasks are defined in the Makefile
. Use make help
to get an
overview.
In order to setup pre-commit hooks, use pre-commit to to setup hooks for linters and tests. This requires pre-commit to be installed of course, and it is included in the python SDK development dependencies.
To install pre-commit and pre-push hooks
pre-commit install
And you can run them on demand
pre-commit run --all
Create a virtual environment and activate it
python -m venv ./venv
./venv/bin/activate
Install the package in editable mode (including development dependencies)
pip install -e ./python[dev]
Run the tests
make sdk-test
And the linters
make sdk-lint
The numerous CLI enables app development.
To build simply run make cli-build
, and the executable is stored
as build/numerous
While developing you can run the CLI like below.
# Run the CLI
go run .
# e.g.
go run . init
go run . dev
You can lint with:
make cli-lint
And you can run tests with
make cli-test
In the examples/numerous
folder are two apps action.py
(containing
ActionTool
), and parameters.py
(containing ParameterTool
). These can be
used to test the Numerous app engine development features.
Note: You need an activate python environment with the python SDK installed. See the python sdk development section for information about how to install it.
For example, if you built using make cli-build
, you can run
./build/numerous dev examples/numerous/parameters.py:ParameterApp