Repository URL to install this package:
|
Version:
0.4.12.dev82+ga252ae1 ▾
|
kiara-plugin.network-analysis
/
METADATA
|
|---|
Metadata-Version: 2.1
Name: kiara-plugin.network-analysis
Version: 0.4.12.dev82+ga252ae1
Summary: kiara data types and modules for network analysis
Author-email: Markus Binsteiner <markus@frkl.io>
License: MPL-2.0
Project-URL: homepage, https://github.com/DHARPA-Project/kiara_plugin.network_analysis
Project-URL: documentation, https://DHARPA-Project.github.io/kiara_plugin.network_analysis
Project-URL: repository, https://github.com/DHARPA-Project/kiara_plugin.network_analysis
Keywords: kiara
Classifier: Framework :: Django
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: AUTHORS.md
Requires-Dist: kiara-plugin.tabular (>=0.4.26)
Requires-Dist: rustworkx (<0.13.0,>=0.12.0)
Provides-Extra: dev_all
Requires-Dist: kiara[dev_all] ; extra == 'dev_all'
Provides-Extra: dev_documentation
Requires-Dist: kiara[dev_documentation] ; extra == 'dev_documentation'
Provides-Extra: dev_testing
Requires-Dist: kiara[dev_testing] ; extra == 'dev_testing'
Provides-Extra: dev_utils
Requires-Dist: kiara[dev_utils] ; extra == 'dev_utils'
[](https://pypi.python.org/pypi/kiara_plugin.network_analysis/)
[](https://pypi.python.org/pypi/kiara_plugin.network_analysis/)
[](https://pypi.python.org/pypi/kiara_plugin.network_analysis/)
[](https://actions-badge.atrox.dev/DHARPA-Project/kiara_plugin.network_analysis/goto?ref=develop)
[](https://coveralls.io/github/DHARPA-Project/kiara_plugin.network_analysis?branch=develop)
[](https://github.com/ambv/black)
# [**kiara**](https://dharpa.org/kiara.documentation) plugin: (network_analysis)
kiara data types and modules for network analysis
- Documentation: [https://DHARPA-Project.github.io/kiara_plugin.network_analysis](https://DHARPA-Project.github.io/kiara_plugin.network_analysis)
- Code: [https://github.com/DHARPA-Project/kiara_plugin.network_analysis](https://github.com/DHARPA-Project/kiara_plugin.network_analysis)
- `kiara`: [https://dharpa.org/kiara.documentation](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:
```console
git clone https://github.com/DHARPA-Project/kiara_plugin.network_analysis.git
cd kiara_plugin.network_analysis
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)](https://docs.anaconda.com/anaconda/install/index.html), 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:
```console
# make sure your virtual env is activated!!!
git clone https://github.com/DHARPA-Project/kiara_plugin.network_analysis.git
cd kiara_plugin.network_analysis
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:
```console
kiara run network_analysis_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:
```console
cd path/to/kiara_plugin.network_analysis
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 core ``kiara`` package from git)
- ``flake``: run *flake8* tests
- ``mypy``: run mypy tests
- ``test``: run unit tests
- ``docs``: create static documentation pages (under ``build/site``)
- ``serve-docs``: serve documentation pages (incl. auto-reload) for getting direct feedback when working on documentation
- ``clean``: clean build directories
For details (and other, minor targets), check the ``Makefile``.
### Running tests
``` console
> make test
# or
> make coverage
```
## Copyright & license
This project is MPL v2.0 licensed, for the license text please check the [LICENSE](/LICENSE) file in this repository.