Shared code supporting 10Duke SDKs
Project description
10Duke Python core library
This repository contains the shared code between the 10Duke Enterprise and 10Duke Scale SDKs.
Contents
Why
The 10Duke Enterprise and 10Duke Scale SDK client libraries both need similar functionality in areas such as authentication and configuration
In order to reduce complexity in those libraries, promote similar developer experience using those libraries, and reduce effort developing and maintaining those libraries, this project established a shared, core library that provides that functionality to both client libraries.
Installation
Using pip
pip install tenduke_core
Using poetry
poetry add tenduke_core
Development
To get started with working on the code, clone this repository.
git clone git@gitlab.com:10Duke/core/python-core.git
Then you need to install the tools and dependencies.
Install poetry:
curl -sSL https://install.python-poetry.org | python3
Start the virtual environment for the project:
poetry shell
Resolve dependencies:
poetry lock
Install dependencies:
poetry install
The tests can be run using
pytest .
For linux or macOS, a Makefile
is provided to automate these, and other, development tasks.
Code formatting / linting
This project is using:
- ruff for linting and code formatting
- markdownlint for linting markdown.
Bumping version and releasing
The project is using Semantic Versioning.
The version shall be set using poetry version
. This will update the version number in
pyproject.toml
.
That change shall be committed in a new revision.
That revision shall be tagged (for example git tag v1.1.1
).
The new tag shall be pushed (git push --tags
).
That will trigger the creation of a new package and the publishing of that package to the GitLab package repository.
Publishing to PyPi requires additional steps.
Getting involved
We welcome contributions! Contributing explains what kind of contributions we welcome.
Resources
- 10Duke Enterprise documentation
- 10Duke Scale documentation
- 10Duke.com - Find more information about 10Duke products and services
License
10Duke Python core library is licensed under the MIT license.
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
File details
Details for the file tenduke_core-2.1.0.tar.gz
.
File metadata
- Download URL: tenduke_core-2.1.0.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33c37ec048bb9978796ec6ded7aff52b70ab59e96a0f59dc1a2a8c6d6a8a11f3 |
|
MD5 | 232d3b0f2b71caa1678daf9a3f5dacca |
|
BLAKE2b-256 | cba5952d1c9c6bc4d5a86aac154b3b73b06a902f35c7c9e4e19bd5f05a95387f |
File details
Details for the file tenduke_core-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: tenduke_core-2.1.0-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a9b0da3ac7c68eb0e82640e699aed48b673b652f3849db514ac620d2737c8aa |
|
MD5 | 20764a20934424638e9f6285052f9a14 |
|
BLAKE2b-256 | a3d9b5caf5132884562d30ad64384b580ff32092510579bb18fc5ccf67e06fe1 |