Skip to main content

Build Status Language grade: Python codecov license

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.

# See the Documentation for more information: https://cubiedev.github.io/TheNounProjectAPI
from TheNounProjectAPI import API

if __name__ == "__main__":
    # API Key and Secret from https://api.thenounproject.com/getting_started.html#creating-an-api-key
    key = "<my api key>"
    secret = "<my api secret>"

    # Create api object
    api = API(key=key, secret=secret)

    # See the documentation for more endpoints
    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 python runner.py, nosetests, python setup.py nosetests or python setup.py test to run all tests in one batch.

License

TheNounProjectAPI is licensed under MIT.

Contributions

Contributions are welcome.

Release files for TheNounProjectAPI 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TheNounProjectAPI 1.0.5
File Size Uploaded
TheNounProjectAPI-1.0.5.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TheNounProjectAPI 1.0.5
File Interpreter ABI Platform
TheNounProjectAPI-1.0.5-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 30.5 kB

Release files / TheNounProjectAPI-1.0.5.tar.gz

Download URL TheNounProjectAPI-1.0.5.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
12e13e2fe6aaa68df689829bfb64aea911948ed0ce672ead424ca93ecdb0c561
BLAKE2b-256 checksum
How to use checksums
c1ac4477363b28d353b4e48291747b9180fc0f7dee6cac051695191f003a5a85
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / TheNounProjectAPI-1.0.5-py2.py3-none-any.whl

Download URL TheNounProjectAPI-1.0.5-py2.py3-none-any.whl
Size 16.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6d4a02a532c75e5760adfc36222f04733e2f38d6e662dca65c8779448383fddc
BLAKE2b-256 checksum
How to use checksums
6d2732ebfea83a505b856b87ea6d05e863c6da018851a9205bef4aa50f9e6434
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page