Cinemate - реализация API сайта cinemate.cc на языке python. Реализация использует методы api v2.
Установка
Используйте следующую команду для получения последней версии:
pip install cinemate
Страница на PyPI.
Документация на Read the Docs.
Использование
Ниже приведены простые примеры, подробные примеры находятся в каталоге examples.
Инициализация:
>>> from cinemate import Cinemate
>>> cin = Cinemate('username', 'password', 'passkey', 'apikey')
Получить подробную информацию о персоне:
>>> person = cin.person.get(57658)
>>> print(person)
<Person 57658 Noel Fielding>
>>> print(person.photo.big)
http://c.cinemate.cc/media/p/8/5/57658/0.big.jpg
Получить подробную информацию о фильме:
>>> print(movie)
<Movie 114458 Africa>
>>> print(movie.title.original)
Africa
>>> movie.runtime is None
True
>>> print(movie.imdb)
<Rating rating=8.9 votes=1984>
>>> print(movie.imdb.rating)
8.9
Получить список слежения пользователя:
>>> watchlist = cin.account.watchlist()
>>> for person in watchlist['person']:
... print(person.name_original)
...
Kar Wai Wong
Gregg Araki
Jan Svankmajer
Gaspar Noe
Участие в разработке
Проверяйте внесенные изменения на соответсвие pep-20, pep-8, pep-287. Пожалуйста, документируйте код на русском языке, т.к. проект cinemate.cc рассчитан на русскоговорящую аудиторию.
Тесты запускаются через tox и должны выполняться в версиях py27, py32, py33, py34, pypy, pypy3.
В остальном никаких особенностей нет, форкаете, меняете, pull-request.
Metadata
Release files for cinemate 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cinemate-0.2.1.tar.gz | 15.9 kB | Without provenance | Details for cinemate-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cinemate-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for cinemate-0.2.1-py2.py3-none-any.whl |
Total release size: 48.9 kB
Release files / cinemate-0.2.1.tar.gz
| Download URL | cinemate-0.2.1.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ce6fef1db2b1dc1f007c25644b38d6268f7abacef942ef7dd0c39ce574c445a
|
|
BLAKE2b-256 checksum How to use checksums |
ce4d59e023e48e5aafbe5255e4533ebf8ab413769fbf9fef1878d4e2c24c5e80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cinemate-0.2.1-py2.py3-none-any.whl
| Download URL | cinemate-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 33.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c0b95a649a33c63d03ddb5f5d461c8f5a85fce88a3ba878b0cb37d88665a50d9
|
|
BLAKE2b-256 checksum How to use checksums |
7a1fb2c805c7a023e7f732eeff358e9766b9525e1e923ac2567fc4cb279c1b0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cinemate 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.