Skip to content

Latest commit

 

History

History
107 lines (66 loc) · 3.01 KB

README.md

File metadata and controls

107 lines (66 loc) · 3.01 KB

Numerous Software Development Kit

💫 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!

Badges

pypi badge Validate workflow badge Release workflow badge cli coverage badge sdk coverage badge

Development

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

Development of python SDK 🐍

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

Development of go CLI 🐹

The numerous CLI enables app development.

Building and running

To build simply run make cli-build, and the executable is stored as build/numerous

Development

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

Trying out Numerous app engine development

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