https://github.com/bluebrain/nexus-python-sdk
A Python API to interface with Nexus REST API
https://github.com/bluebrain/nexus-python-sdk
nexus python sdk
Last synced: 12 months ago
JSON representation
A Python API to interface with Nexus REST API
- Host: GitHub
- URL: https://github.com/bluebrain/nexus-python-sdk
- Owner: BlueBrain
- License: apache-2.0
- Created: 2017-09-12T11:49:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T14:06:17.000Z (over 2 years ago)
- Last Synced: 2025-04-17T12:06:32.514Z (about 1 year ago)
- Topics: nexus, python, sdk
- Language: Python
- Homepage: https://bluebrainnexus.io
- Size: 624 KB
- Stars: 6
- Watchers: 24
- Forks: 10
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# Nexus Python SDK
Python SDK for [Blue Brain Nexus](https://github.com/BlueBrain/nexus) v1.
[Status](#status) |
[Getting Started](#getting-started) |
[Upgrade](#upgrade) |
[Releases](#releases) |
[Contributing](#contributing)
---
## Status
Beta.
## Getting Started
### Usage
````python
import nexussdk as nexus
nexus.config.set_environment(DEPLOYMENT)
nexus.config.set_token(TOKEN)
nexus.permissions.fetch()
````
More examples in the folder [notebooks](./notebooks) and [tests](./tests).
Documentation: https://bluebrain.github.io/nexus-python-sdk/.
### Installation
```bash
pip install nexus-sdk
```
**Development version**
```bash
pip install git+https://github.com/BlueBrain/nexus-python-sdk
```
**Development mode**
```bash
git clone https://github.com/bluebrain/nexus-python-sdk
pip install --editable nexus-python-sdk
```
**Requirements**
- [requests](http://docs.python-requests.org)
## Upgrade
```bash
pip install --upgrade nexus-sdk
```
## Releases
Versions and their notable changes are listed in the [releases section](
https://github.com/BlueBrain/nexus-python-sdk/releases/).
## Contributing
### Styling
Follow [PEP 20](https://www.python.org/dev/peps/pep-0020/),
[PEP 8](https://www.python.org/dev/peps/pep-0008/), and
[PEP 257](https://www.python.org/dev/peps/pep-0257/), at least.
### Documentation
The documentation is auto-generated with [Sphinx](http://www.sphinx-doc.org).
To install it:
```bash
pip install nexus-sdk[doc]
```
**Update**
To add a new module to the API Reference, add the corresponding section in the
files `admin-reference.rst`, `kg-reference.rst`, or `iam-reference.rst` which
are in the directory `docs-sources/sphix/source/`.
**Generate**
```bash
cd docs-source/sphinx
make html
```
**Deploy**
```bash
cp -R build/html/ ../../docs/
```
### Releasing
**Setup**
```bash
pip install --upgrade pip setuptools wheel twine
```
**Tagging**
```bash
git checkout master
git pull upstream master
git tag -a v.. HEAD
git push upstream v..
```
**Building**
```bash
python setup.py sdist bdist_wheel
```
**Upload**
```bash
twine upload dist/*
```
**Cleaning**
```bash
rm -R build dist *.egg-info
```
## Funding & Acknowledgment
This study was supported by funding to the Blue Brain Project, a research center of the École polytechnique fédérale de Lausanne (EPFL), from the Swiss government’s ETH Board of the Swiss Federal Institutes of Technology.
Copyright © 2015-2022 Blue Brain Project/EPFL
