A plugin to create, run and manage a service for kiara functionality.
Project description
kiara plugin: (service)
A plugin to create, run and manage a service for kiara functionality.
- Documentation: https://DHARPA-Project.github.io/kiara_plugin.service
- Code: https://github.com/DHARPA-Project/kiara_plugin.service
kiara
: https://dharpa.org/kiara.documentation
Description
TODO
Development
Requirements
- Python (version >= 3.8)
- pip, virtualenv
- git
- make (on Linux / Mac OS X -- optional)
Prepare development environment
If you only want to work on the modules, and not the core Kiara codebase, follow the instructions below. Otherwise, please check the notes on how to setup a Kiara development environment under (TODO).
Linux & Mac OS X (using make)
For *NIX-like operating system, setting up a development environment is relatively easy:
git clone https://github.com/DHARPA-Project/kiara_plugin.service.git
cd kiara_plugin.service
python3 -m venv .venv
source .venv/bin/activate
make init
Windows (or manual pip install)
It's impossible to lay out all the ways Python can be installed on a machine, and virtual- (or conda-)envs can be created, so I'll assume you know how to do this. One simple way is to install the Anaconda (individual edition), then use the Anaconda navigator to create a new environment, install the 'git' package in it (if your system does not already have it), and use the 'Open Terminal' option of that environment to start up a terminal that has that virtual-/conda-environment activated.
Once that is done, cd
into a directory where you want this project folder to live, and do:
# make sure your virtual env is activated!!!
git clone https://github.com/DHARPA-Project/kiara_plugin.service.git
cd kiara_plugin.service
pip install --extra-index-url https://pypi.fury.io/dharpa/ -U -e .[all_dev]
Try it out
After this is done, you should be able to run the included example module via:
kiara run service_example text_1="xxx" text_2="yyy"
...
...
Re-activate the development environment
The 'prepare' step from above only has to be done once. After that, to re-enable your virtual environment,
you'll need to navigate to the directory again (wherever that is, in your case), and run the source
command from before again:
cd path/to/kiara_plugin.service
source .venv/bin/activate # if it isn't activated already, for example by the Anaconda navigator
kiara --help # or whatever, point is, kiara should be available for you now,
make
targets (Linux & Mac OS X)
init
: init development project (install project & dev dependencies into virtualenv, as well as pre-commit git hook)update-dependencies
: update development dependencies (mainly the corekiara
package from git)flake
: run flake8 testsmypy
: run mypy teststest
: run unit testsdocs
: create static documentation pages (underbuild/site
)serve-docs
: serve documentation pages (incl. auto-reload) for getting direct feedback when working on documentationclean
: clean build directories
For details (and other, minor targets), check the Makefile
.
Running tests
> make test
# or
> make coverage
Copyright & license
This project is MPL v2.0 licensed, for the license text please check the LICENSE file in this repository.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kiara_plugin.service-0.4.0.tar.gz
.
File metadata
- Download URL: kiara_plugin.service-0.4.0.tar.gz
- Upload date:
- Size: 57.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7236c774f3d435d253361ff4aae10646c678b042111614d0533e05b22bfeeae |
|
MD5 | fc7f50503340eaa3701562429c723f80 |
|
BLAKE2b-256 | e674c79c1cb91e936b1b39e7c88bbf1dd4c99ffbd295ba18ad00703f5e2d2e38 |
File details
Details for the file kiara_plugin.service-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: kiara_plugin.service-0.4.0-py3-none-any.whl
- Upload date:
- Size: 45.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 837f44e61d80068329f08121439b96177c12b17e06ef2051fb9018f36f953298 |
|
MD5 | bcf2b081a17bd488e03db34487cf1eff |
|
BLAKE2b-256 | d252d0a7bc24aa01cd9dd0fe08a8243aa0aa7360039b708841cd8de0003514ba |