Package containing the Popoto Modem Python API.
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file popoto_api-0.6.0.tar.gz.
File metadata
- Download URL: popoto_api-0.6.0.tar.gz
- Upload date:
- Size: 227.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
009bc447927215ebf3a33e1958a60dda408ce77cfb5dbe1880e4ffc29787cd0d
|
|
| MD5 |
f3147a583a26cd98edc9dd1edeec0c22
|
|
| BLAKE2b-256 |
ff952004ce4b1bae3c36d7f61e383009b595934713415577989e34a169438b2f
|
File details
Details for the file popoto_api-0.6.0-py3-none-any.whl.
File metadata
- Download URL: popoto_api-0.6.0-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3504c87b623cd867296a72db80edaaa99a6268a87a41ae6cae02f7e6da9a1dc3
|
|
| MD5 |
e3973e341e51771963be96356052663b
|
|
| BLAKE2b-256 |
831e928b48ad8c0265df8e62c5ac684a56c7b579cfa490940d99f98f05b65a1c
|