Skip to main content

A collection of helper functions to ease API development

Project description

PyPal-API

License Repo Size Last Commit Commits a Month Supported Python versions Current PyPi Version


What is it?

PyPal-API is a python package that includes helper functions that ease development of API's for the most popular API's (google ,shopify , etc) and tools such as FastAPI and Flask. There aren't a lot of content at the moment but given time, it will hopfully grow into a huge project helping countless number of people!

  • date_to_string: very simple function that with an input of a datetime object, it will return the date as a string!

  • new_date: Input a number (positive or negative) to tell this function the amount of days before or after the current day, default returned value is a string


Getting Started

To get started using this package, install from test pypi here:

https://test.pypi.org/project/pypal-api/

If you're really lazy you can use this PiP command to install it:

$ pip install -i https://test.pypi.org/simple/ pypal-api

date_to_string

Simple function that you input a datetime and it will return it in the nice simple string format YYY-MM-DD

code to use:

from pipal_api import date_to_string
import datetime

date = datetime.datetime(2021,12,2)

date_to_string(date)

new_date

Input a number (positive or negative) and it'll return (default: string. other options include datetime or string/integer list) the specified return_type. The default from_date uses datetime.date.today() but can use a string date (YYYY-MM-DD) or a datetime and it will act accordingly.

from pipal_api import new_date

new_date(2)

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

pypal-api-0.1.6.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

pypal_api-0.1.6-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file pypal-api-0.1.6.tar.gz.

File metadata

  • Download URL: pypal-api-0.1.6.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for pypal-api-0.1.6.tar.gz
Algorithm Hash digest
SHA256 39fc57ad78cbd5df0799543e6cc3153111aef5258186329682a70cfa3ee98f9a
MD5 08ab671c5bd7389605dd6fb8f4e24f21
BLAKE2b-256 3f154ffd64f64c2deeddb1630711c8ceb3db3b59cb37565a7d348862afeb460d

See more details on using hashes here.

File details

Details for the file pypal_api-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pypal_api-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for pypal_api-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f8a9ee826dbfd79b37cc6050c471b528816392517868343ef57873a4f29bb102
MD5 83a03976719fabce86d3cec032bffa8b
BLAKE2b-256 08369a2cb8e23b3ca8b2592bb1f099ec94b27459b7439a025ba0e9afcd711476

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