Skip to main content

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:add-role

2. Create API-User

Now we can create the api user and copy the api-key: add-user

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:

install-extensions

Upload

  1. increment version number
  2. 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...

Release files for cashctrl 0.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cashctrl 0.0.14
File Size Uploaded
cashctrl-0.0.14.tar.gz 218.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cashctrl 0.0.14
File Interpreter ABI Platform
cashctrl-0.0.14-py3-none-any.whl Python 3 none any Details

Total release size:232.7 kB

Release files / cashctrl-0.0.14.tar.gz

Download URL cashctrl-0.0.14.tar.gz
Size 218.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bb1ce521680c0bf90c3cf177039398692c9f165c03af94078558c8909215c857
BLAKE2b-256 checksum
How to use checksums
e324196f48c926bf78a554d77af61443fb916ef61e4c38c5115a0fc5250341fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / cashctrl-0.0.14-py3-none-any.whl

Download URL cashctrl-0.0.14-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95cb25e1938b5553f18af6f0ec78dae66b7b66be182e342f9689cf3a260a3e3c
BLAKE2b-256 checksum
How to use checksums
3f6b1812843930fed9b9e0bdf2107be4d421ba0dd1a3706a4ec83077e5b24c8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.0.14 This release

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page