Py Unsplash Source
py_unsplash_source is a really really simple library to easily interface with the source.unsplash.com service. Typical usage often looks like this:
#!/usr/bin/env python
from py_unsplash_source import PyUnsplashSourceClient
su = PyUnsplashSourceClient(width=1920, height=1080)
# Random √
image = (su.random_image()
.daily() # Or .weekly()
.search('nature,landscape')).get()
image.save_as('/tmp/random.jpg')
# Random from a specific user √
image = (su.image_from_user('gangdise')
.from_likes()).get()
image.save_as('/tmp/user.jpg')
# Random from a collection √
image = su.image_from_collection(145698).get()
image.save_as('/tmp/collection.jpg')
# Random from featured collection √
image = (su.image_from_featured()
.search('nature,landscape', 'sunset')).get()
image.save_as('/tmp/featured.jpg')
# Speficic image √
image = su.image("ieic5Tq8YMk").get()
image.save_as('/tmp/item.jpg')
Metadata
Release files for py-unsplash-source 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_unsplash_source-0.9.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_unsplash_source-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.0 kB
Release files / py_unsplash_source-0.9.0.tar.gz
| Download URL | py_unsplash_source-0.9.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e07417db8e43ab70c775702b07e0fcef6b344eba169485ee67389526505bb0d5
|
|
BLAKE2b-256 checksum How to use checksums |
e84240bd19fe4d5b946fee738e089451f25b5dfbe4ff0e8c650b57c911f8274c
|
| 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.3
|
Release files / py_unsplash_source-0.9.0-py3-none-any.whl
| Download URL | py_unsplash_source-0.9.0-py3-none-any.whl |
|---|---|
| Size | 34.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d44cc6d9a580e6da9af4434bb7fa1e447a80161536f0a204fb7745877fc74bc1
|
|
BLAKE2b-256 checksum How to use checksums |
17ed90bd3b060ed79fd29b64c71d420735e8b5a8831346759592cf2ba0fb78f1
|
| 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.3
|