Popoto-API
Python implimentation of the Popoto-API
Installing package from gitlab
To install the from the gitlab pypi package repository follow these steps:
Create an acess token
- Go to your gitlab profile settings
- Click on "Access Tokens"
- Create a new access token with the following scopes:
read_apiread_repositoryread_package_registry
- Copy the access token, you will need it later.
Create a pip configuration file
Create a file named pip.conf in your home directory (e.g., ~/.pip/pip.conf on Linux/MacOS or %APPDATA%\pip\pip.conf on Windows) and add the following content:
[global]
index-url = https://__token__:<your_access_token>@gitlab.popotomodem.com/api/v4/projects/134/packages/pypi/simple
Install the package
Now you can install the package using pip:
For the latest version:
pip install popoto-api
For a specific version:
pip install popoto-api==<version>
Example:
pip install popoto-api
# or for a specific version
pip install popoto-api==0.0.1+seng333.7343
Data server CLI
The install also provides the Popoto data server entry point:
popoto-data-server --listen-port 39484
Development
To contribute to the project, you can clone the repository and develop locally or in the included dev container.
Cloning the repository
git clone git@gitlab.popotomodem.com:delresearch/api/pythonpopotoapi.git
Setting up the development environment
You can use the included dev container for development. To do this, follow these steps:
- Open the repository in Visual Studio Code.
- Install the "Dev Containers" extension if you haven't already.
- A notification should appear asking if you want to reopen the repository in a container. Click "Reopen in Container". Note: If the notification does not appear, you can manually open the command palette (Ctrl+Shift+P or Cmd+Shift+P) and select "Dev Containers: Rebuild and Reopen in Container".
- Wait for the container to build and start.
Note: If there are any issues with the container build, it's usually related to the mounts in the
devcontainer.jsonfile. Make sure you have a .ssh directory in your home directory, and a .gitconfig file in your home directory. - Once the container is running, you can open a terminal in the container and run the following command to install the package in editable mode:
pip install -e .
Building the documentation
The repository includes a Sphinx configuration under docs/. After installing
the package locally, install the documentation requirements and build the HTML
site:
python -m pip install -r docs/requirements.txt
cd docs
make html
The generated pages will be placed in docs/_build/html/index.html.
Note for commits
When making commits, please ensure that you are putting a Jira ticket number in the commit message or that your branch name contains a Jira ticket number. This is important for tracking changes and linking them to the relevant tasks in our project management system. If you are working on a feature or bug fix that is not directly linked to a Jira ticket, please create a new ticket and link it to your commit. This helps maintain clarity and organization in our development process.
Metadata
Release files for popoto-api 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| popoto_api-0.7.1.tar.gz | 25.0 MB | Without provenance | Details for popoto_api-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| popoto_api-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for popoto_api-0.7.1-py3-none-any.whl |
Total release size: 25.0 MB
Release files / popoto_api-0.7.1.tar.gz
| Download URL | popoto_api-0.7.1.tar.gz |
|---|---|
| Size | 25.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f85f57caf2cbc9d163089a78cb4da45907e490d9e2c035d43890d4a06af36e12
|
|
BLAKE2b-256 checksum How to use checksums |
eb3f0417b0c6359ca9118799ad427b3e745f3de801b98a453258f55add5e1c64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / popoto_api-0.7.1-py3-none-any.whl
| Download URL | popoto_api-0.7.1-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e391e94710766c8fbe97b64951769119aa4076f940389243a53337d7b60f5fb5
|
|
BLAKE2b-256 checksum How to use checksums |
2d34fd822a2e8ebac1b78bbc50adf394186c096725e73e6d0fd1347b8f34edc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for popoto-api 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.