CashCtrl API Client
Project description
cashctrl
Unofficial python client for the cashctrl api v1
The goal was to make it easy, easier, easiest :smile::
import cashctrl
cc=cashctrl.Client()
people=cc.person.list()
Quickstart
1. Create role
According to the [principle of least privilegue](https://en.wikipedia.org/wiki/Principle_of_least_privilege it is recommended to create a seperate role for the admin user.
Then you can give it the exact permission it needs:
2. Create API-User
Now we can create the api user and copy the api-key:
3. Add credentials to your environment
Create the .env file and add your api-key, organization and language:
cp .env.example .env && open .env
Make sure your .env file is in a safe place
4. have fun
from cashctrl_py import CashCtrlClient
from icecream import ic
cc = CashCtrlClient()
people = cc.person.list()
ic(people)
Contribute
Submit a Pull Request
There is still much work to do 😔
If you want to contribute, please fork the repository and create a pull request.
gh repo fork <USER>/cashctrl-py
Dynamic install
For development you can install this library dynamically with the following command:
pip3 install -e /path/to/cashctrl-py
Now you can import it normally in other projects and changes in cashctrl-py get reflected immediately in all importing projects.
Swagger
There is an unofficial swagger.json file to help with development. You can export it into your http-client i.e. insomnia.
IDE
The Project was developed in Vscode. You can install the recommended extensions when you first open the project:
Upload
- increment version number
- upload:
./upload.sh
Also see: Package Tutorial
.env
Make sure you don't put a .env file in the sources folder. It is dangerous because all projects that have importet cashctrl-py with pip -e
will then use that file instead of their own...
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
File details
Details for the file cashctrl-0.0.12.tar.gz
.
File metadata
- Download URL: cashctrl-0.0.12.tar.gz
- Upload date:
- Size: 235.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c79a4adf5a2683051cc4eb391eda2375582daac1300dc985440a698f4f2a4876 |
|
MD5 | 034b4bd2d654c765a70ed6899b7339f8 |
|
BLAKE2b-256 | 34e90a396cd03a9728c2709b7e143f0bc71d867cad34340fb31a164890fdc373 |
File details
Details for the file cashctrl-0.0.12-py3-none-any.whl
.
File metadata
- Download URL: cashctrl-0.0.12-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d891dba2cce0f3d853ba8ab756500accfdc4a5833186dc6556c58ebc4c995a |
|
MD5 | c48216883b64474eed708b6e521b752a |
|
BLAKE2b-256 | 45b7e9ae11b1ef42d4d8227cef04381af13a32422bf4d6bbaf1b3bd20f52aa73 |