Neo4j database client for NORDUnet network inventory
Tools | Version |
---|---|
neo4j DB | 4.4.x |
neo4j | 4.4.x |
neomodel | 5.0.x |
poetry shell
poetry install
Add the following environment variables:
NEO4J_HTTP_PORT=7474
NEO4J_BOLT_PORT=7687
NEO4J_HOSTNAME=xx
NEO4J_USER=xx
NEO4J_PASSWORD=xx
and run
poetry run python -m unittest discover
or save the environment variables in a local file .env
and run it with dotenvx as follows:
dotenvx run -- poetry run python -m unittest discover
or
nox -rs tests
nox -rs tests_dotenv
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 -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ jolieprinter
import norduniclient as nc
NODE_META_TYPE_CHOICES = zip(nc.META_TYPES, nc.META_TYPES)
print("nc.META_TYPES=", nc.META_TYPES)
poetry run python [operation]
poetry add <library>
poetry remove <library>
poetry run which python
poetry show
poetry run pip list
poetry config --list
poetry config repositories.pypi https://upload.pypi.org/legacy/
poetry config pypi-token.pypi [token]
poetry publish --build --repository pypi
poetry publish --build --repository testpypi