Update readme.md
Some checks are pending
Python CI / test (push) Waiting to run

This commit is contained in:
Benedith Mulongo 2024-10-11 15:55:53 +02:00
parent 615835d57d
commit a6ed74dfe5
Signed by: benedith
GPG key ID: 62D68B584B4B3EB3
2 changed files with 32 additions and 15 deletions

View file

@ -1,9 +1,17 @@
# python-norduniclient # python-norduniclient
[![PyPI](https://img.shields.io/pypi/v/norduniclient.svg)](https://pypi.python.org/pypi/norduniclient) [![PyPI](https://img.shields.io/pypi/v/norduniclient.svg)](https://pypi.python.org/pypi/norduniclient)
Neo4j database client for NORDUnet network inventory Neo4j database client for NORDUnet network inventory
## Compatibility
| Tools | Version |
| ----------- | --------- |
| neo4j DB | 4.4.x |
| neo4j | 4.4.x |
| neomodel | 5.0.x |
## Setup ## Setup
``` ```
@ -31,7 +39,6 @@ poetry run python -m unittest discover
or save the environment variables in a local file `.env` and run it with [dotenvx](https://dotenvx.com/) as follows: or save the environment variables in a local file `.env` and run it with [dotenvx](https://dotenvx.com/) as follows:
```bash ```bash
dotenvx run -- poetry run python -m unittest discover dotenvx run -- poetry run python -m unittest discover
``` ```
@ -46,18 +53,15 @@ nox -rs tests
nox -rs tests_dotenv nox -rs tests_dotenv
``` ```
## Installation ## Installation
```bash ```bash
pip install norduniclient pip install norduniclient
``` ```
python3 -m pip install --index-url <https://platform.sunet.se/api/packages/benedith/pypi/simple/> --extra-index-url <https://pypi.org/simple/> norduniclient
python3 -m pip install --index-url https://platform.sunet.se/api/packages/benedith/pypi/simple/ --extra-index-url https://pypi.org/simple/ norduniclient python3 -m pip install -i <https://test.pypi.org/simple/> --extra-index-url <https://pypi.org/simple/> jolieprinter
python3 -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ jolieprinter
## Usage ## Usage
@ -69,7 +73,6 @@ NODE_META_TYPE_CHOICES = zip(nc.META_TYPES, nc.META_TYPES)
print("nc.META_TYPES=", nc.META_TYPES) print("nc.META_TYPES=", nc.META_TYPES)
``` ```
### Poetry guide ### Poetry guide
``` ```
@ -79,29 +82,35 @@ poetry run python [operation]
### Add depenency ### Add depenency
#### Add a new lib #### Add a new lib
```bash ```bash
poetry add <library> poetry add <library>
``` ```
#### Remove a lib #### Remove a lib
```bash ```bash
poetry remove <library> poetry remove <library>
``` ```
#### Get venv path #### Get venv path
```bash ```bash
poetry run which python poetry run which python
``` ```
#### Show dependencies #### Show dependencies
```bash ```bash
poetry show poetry show
``` ```
```bash ```bash
poetry run pip list poetry run pip list
``` ```
#### List configuratiom #### List configuratiom
```bash ```bash
poetry config --list poetry config --list
``` ```

View file

@ -1,12 +1,20 @@
# python-norduniclient # python-norduniclient
[![PyPI](https://img.shields.io/pypi/v/norduniclient.svg)](https://pypi.python.org/pypi/norduniclient)
[![PyPI](https://img.shields.io/pypi/v/norduniclient.svg)](https://pypi.python.org/pypi/norduniclient)
Neo4j database client for NORDUnet network inventory Neo4j database client for NORDUnet network inventory
## Compatibility
| Tools | Version |
| ----------- | --------- |
| neo4j DB | 4.4.x |
| neo4j | 4.4.x |
| neomodel | 5.0.x |
## Setup ## Setup
``` ```bash
poetry shell poetry shell
poetry install poetry install
``` ```
@ -23,7 +31,7 @@ NEO4J_USER=xx
NEO4J_PASSWORD=xx NEO4J_PASSWORD=xx
``` ```
``` ```bash
poetry run python -m unittest discover poetry run python -m unittest discover
``` ```