Skip to main content

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()

[TOC]

Quickstart

1. Create role

It is recommended to create a seperate role for the admin user according to the principle of least privilegue.2023-09-22_11-08-29

2. Create API-User

Now we can create the api user and copy the api-key: 2023-09-22_11-15-17-5374206

3. Add details 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 safe

4. have fun

from cashctrl_py import CashCtrlClient
from icecream import ic

cc = CashCtrlClient()
people = cc.person.list()
ic(people)

Contribute

Fork

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 the library dynamically with the following command:

pip3 install -e .

Now you can install it normally in other projects but the changes get reflected immediately.

Swagger

there is an unofficial swagger.json file to help with development. You can export it into your http-client i.e. insomnia.

IDE

I used Vscode. You can install the recommended extensions when you first open the project:

2023-09-22_11-51-06

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

cashctrl-0.0.3.tar.gz (214.7 kB view details)

Uploaded Source

Built Distribution

cashctrl-0.0.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file cashctrl-0.0.3.tar.gz.

File metadata

  • Download URL: cashctrl-0.0.3.tar.gz
  • Upload date:
  • Size: 214.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for cashctrl-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d82fc3694a05ef76065f8cb011f6df48c508a1dc3271fe3ffa285e560053ad94
MD5 9b81a7deaf797d64a1f96c8f2f1f6d94
BLAKE2b-256 191d7212843a9ad6ef7b72eb40aa1322682bc2688c39eec4f71e9daf91996538

See more details on using hashes here.

File details

Details for the file cashctrl-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: cashctrl-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for cashctrl-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 56fc9fc926bfffbf1ecd2a0b62608b60d8955e21eb9ca6d9a1589980ac7cabbc
MD5 43e9d29b037310375986db2e49017c12
BLAKE2b-256 7af6dbda9dc402eeaf54a88d97140f9f3f0327609bde3b5f7c3b276f64db92c7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page