Collection of tools developed for NathanJames
Project description
NathanJames Toolbox
Collection of tools used by NathanJames
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Installing
You can use pip to install the package.
pip install NathanJamesToolbox
Usage
importing the module
from NathanJamesToolbox import NathanJamesToolbox as nj
airtableToolbox
myAirtable = nj.airtableToolbox(<airtable base>, <airtable API Key>)
Create a dictionary from airtable columns reverse=False will use airtable base column name as the key and add row ID into the value list reverse=True will use airtable row ID as the key and add base column name into the value list *args are additional column you want to add into the value list
myAirtable.create_dictionary(url, baseColumnName, reverse=False, *args)
Cleans up the string by removing the following charcater in a string ([, ', ])
myAirtable.create_dictionary.clean_list_string("['TEST']")
>>> TEST
Push a payload into airtable patch=True sends a patch request patch=False sens a post request
push_data(url, payload, patch=True)
Authors
- Paulo Fajardo - Initial work - github
License
This project is licensed under the MIT License - see the LICENSE.md file for details
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
Hashes for NathanJamesToolbox-1.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae3c58177027c8f14689edd0729b1136cb34bcb12ff2d8c76339abfd28f7ad3 |
|
MD5 | 28e16fd04d59f5dd78c831ad39c2274b |
|
BLAKE2b-256 | 134a25e48ae54e33f480bb6b4a3812bceceb2fe6c5e554a486fb823efc82a279 |