pyyaru — Python-интерфейс для API блог-сервиса ya.ru
http://github.com/idlesign/pyyaru
Интерфейс можно использвать для написания собственных Я.ру-клиентов.
pyayru предназначен для разработчиков.
pyyaru переплюнул API Я.ру и находится в стадии глубокой альфы.
pyyaru не умеет делать того, чего не умеет делать API Я.ру и даже больше.
Простой пример использования:
# Получаю свой профиль.
me = pyyaru.yaPerson('/me/').get()
# Узнаю своё имя.
name = me.name
# А вот ссылка на мой аватар.
avatar = me.links['userpic']
# Сменю своё настроение.
me.set_status("Играю с pyyaru.")
# Погляжу, какие настроения у друзей.
friends_statuses = me.friends_entries('status')
for status_entry in friends_statuses.objects:
print '%s говорит: "%s".' % (status_entry.author['name'] , status_entry.content)
# Вспомню, в каких клубах состою.
my_clubs = me.clubs()
for club in my_clubs.iter():
print club.name
Документация к библиотеке в формате reStructuredText находится в директории docs/. Для сборки документации используйте команду ‘make <форматсборки>’ (требует python-sphinx).
Metadata
Release files for pyyaru 0.3.2
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 |
|---|---|---|---|---|
| pyyaru-0.3.2.tar.gz | 23.5 kB | Without provenance | Details for pyyaru-0.3.2.tar.gz |
Release files / pyyaru-0.3.2.tar.gz
| Download URL | pyyaru-0.3.2.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
faaf82035c7c13218035daea6351d6d3d56405e3ebcb388a3e144748de8cd200
|
|
BLAKE2b-256 checksum How to use checksums |
09accd0f3ad9be5a100470042b0e9153ab7b9de169bbe61ca2fc65187a83bf15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyyaru 0.3.2
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.