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

Quickstart

1. Create role

It is recommended to create a seperate role for the admin user according to the principle of least privilegue.add-role

2. Create API-User

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

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

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

install-extensions

Upload

  1. increment version number
  2. upload:
./upload.sh

Also see: Package Tutorial

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.10.tar.gz (214.9 kB view details)

Uploaded Source

Built Distribution

cashctrl-0.0.10-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cashctrl-0.0.10.tar.gz
  • Upload date:
  • Size: 214.9 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.10.tar.gz
Algorithm Hash digest
SHA256 f678b96fbedb1538b3521a446bbbf42a4c77531dfe1656e882b189fe6f0d6aa0
MD5 f95b8b80567c07fcd3c84f86e1fdadb7
BLAKE2b-256 a0fd26f5f715589b91f4ed76e986fe310b3c82201f5beec763ed3f962daee632

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cashctrl-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c00573bc53d39a07edc0c082c337bfa8e11738d6ffb4c73e1ae1af3ad4a4c2
MD5 0a4307c3c9d34717de7fb2f003d7f165
BLAKE2b-256 8feeaca0d276df69d0075bd393d91f50078651bcdf19bee782eca282cd9b2a59

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