Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NathanJamesToolbox-1.0.7.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NathanJamesToolbox-1.0.7-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file NathanJamesToolbox-1.0.7.tar.gz.

File metadata

  • Download URL: NathanJamesToolbox-1.0.7.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for NathanJamesToolbox-1.0.7.tar.gz
Algorithm Hash digest
SHA256 d4e78cde9150e1bab1caad649b8a401f6662e0b3b618b282463a7d0838ba61de
MD5 56ede2a23a10da8c36b66fc26af842ad
BLAKE2b-256 b7e1513d6a5bba9434d822dd0c77a1a9c1492085287e65e63173b59ca56617a5

See more details on using hashes here.

File details

Details for the file NathanJamesToolbox-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: NathanJamesToolbox-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for NathanJamesToolbox-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e23839e18efb6768a07a810913231ae05c4b6e4faf897d549000ba7ca58f1866
MD5 ae3d3d821555e301081a6d1b3aabea6e
BLAKE2b-256 1529552b8a827f4ac2bbbf2aa2d3b0b698804c9778a6aa8bcf1323adc4b2e1f1

See more details on using hashes here.

Supported by

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