Skip to main content

Python The Noun Project API Wrapper.

Project description

TheNounProjectAPI

TheNounProjectAPI is a Python wrapper allowing convenient access to the Noun Project API. It supports all endpoints and types of responses. Documentation for this wrapper can be found here, while the official documentation of the API itself may be found here.


Installation

TheNounProjectAPI is supported on Python 3.7+. The recommended method of installation is via pip.

pip install TheNounProjectAPI

You can also install TheNounProjectAPI directly from github using:

pip install --upgrade https://github.com/CubieDev/TheNounProjectAPI/archive/master.zip

For help with installing Python and/or pip, see "The Hitchhiker's Guide to Python" Installation Guides


Getting started

It's strongly encouraged to use the documentation's Getting started section to get started, as it's tied to the rest of the documentation, allowing you to quickly find exactly what you need.

However, I'll provide a quick sample.

import TheNounProjectAPI

key = "<sample key>"
secret = "<sample secret>"

api = TheNounProjectAPI.API(key=key, secret=secret)

icons = api.get_icons_by_term("goat", public_domain_only=True, limit=2)

# >>>icons
# [<IconModel: Term: Goat Feeding, Slug: goat-feeding, Id: 24014>,
# <IconModel: Term: Herbivore teeth, Slug: herbivore-teeth, Id: 675870>]

for icon in icons:
    print("Icon's term:", icon.term)
    print("This icon's tags:", ", ".join(tag.slug for tag in icon.tags))
    print("Uploader's username:", icon.uploader.username)

Examine the TheNounProjectAPI documentation for more examples of what can be done with TheNounProjectAPI.


Documentation

Documentation can be found here: https://cubiedev.github.io/TheNounProjectAPI


Tests

Run run_tests.py or perform python setup.py test to run all tests in one batch.

License

TheNounProjectAPI is licensed under MIT.

Contributions

Contributions are welcome.

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

TheNounProjectAPI-1.0.3.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

TheNounProjectAPI-1.0.3-py2.py3-none-any.whl (15.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file TheNounProjectAPI-1.0.3.tar.gz.

File metadata

  • Download URL: TheNounProjectAPI-1.0.3.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for TheNounProjectAPI-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6141ae636895639296df133488d1f154e708409d9f848f75963a5ab49734a4bf
MD5 aaa6043b5eeb2d2d280d7c3ff84aa40f
BLAKE2b-256 e7b593f72e5f757e0f497ac6c40febaf7cd3d8d6835225b5685459c4aca84567

See more details on using hashes here.

File details

Details for the file TheNounProjectAPI-1.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: TheNounProjectAPI-1.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for TheNounProjectAPI-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d921a2c33ab8edfe49621424b2c0c9374403aa18c6684e568921a48fed76ba8e
MD5 d77d365efaa2e268a69037130e23f0d2
BLAKE2b-256 f8f7b1cdfe657c1be4733e8b1b6e5f353716efc43f5e842da628aee19f058e1b

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