The python sdk for useful.
Project description
useful
This package provides the python SDK for useful machines.
Installation
Currently, you can run
poetry add useful-machines
pip install useful-machines
For the library to work successfully and to access the Useful tool, please enter the waitlist on usefulmachines.dev.
Development
First Time
-
We use
gitas our version control system and Github as our source of truth. Please installgitand ensure you have access to the repository. -
We assume you have a way of managing python versions, e.g.,
pyenv. Please ensure that you have the python version located in.python-versioninstalled. If you usepyenv, you can runpyenv installto install the correct version. -
We use
poetryfor dependency management. Please install it. -
With those tools installed, please enter the project root and run:
make setup
General
When working on this project, you can activate the virtual environment with:
poetry shell
If you use VS Code as your IDE, you can set the python interpreter to the one in the virtual environment, which will enable several tools.
Tooling
We use a variety of tools to ensure code quality and for build tasks like documentation.
These types of tools are available in the Makefile; if you inspect that file, you can find the various commands available.
We also use pre-commit to run some of these tools automatically while using git; we have selected a pragmatic configuration that runs quick checks every time you commit and more thorough checks when you push.
Commit Process
We use conventional commits for commit messages and require additional information within the body of a commit; please follow this format.
The .gitmessage file contains a template for commit messages that should be automatically picked up by git after running make setup.
To work on new code, please branch off of the develop branch and write code in a feature branch.
Then, open a pull request to merge into develop.
When merging the commit, ensure that:
- you only have one commit; rebase and squash if necessary
- your commit message has the proper format
- your commit is signed
- your commit passes all checks
- your PR is approved
Troubleshooting
If the tools are not running correctly, run make setup to set them up again.
Project details
Release history Release notifications | RSS feed
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 useful_machines-0.0.1.tar.gz.
File metadata
- Download URL: useful_machines-0.0.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcb60bde1ca139ebf30dceb46ea49bdfa33e5fa7acd8cfbc253e7833957f68f0
|
|
| MD5 |
71b27e4cd266e8e1e1c906e4a31c9e90
|
|
| BLAKE2b-256 |
0c873c862f4b6bda77c5055578ce0c7f063fd0c6909b17e370753716c159e0b0
|
File details
Details for the file useful_machines-0.0.1-py3-none-any.whl.
File metadata
- Download URL: useful_machines-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fdd2fed84344c9e03233bdd3dc5f53399cc3eeb4802761dec49de9725aa3e98
|
|
| MD5 |
d93577a5ef84201aa4e6b27cf2282311
|
|
| BLAKE2b-256 |
a77fa7865c4e5c29ebeba3dc9068504e790195f44e7fafbdcee553a3d8ac45e1
|