Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pyyaru

How to install pyyaru

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pyyaru
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.3.2 Available View build log
0.3.1 Available View build log
Windows (64-bit)
0.3.2 Available View build log
0.3.1 Available View build log
Mac OS X (10.5+)
0.3.2 Available View build log
0.3.1 Available View build log
Linux (32-bit)
0.3.2 Available View build log
0.3.1 Available View build log
Linux (64-bit)
0.3.2 Available View build log
0.3.1 Available View build log
Web
 
Dependencies
Imports
Lastest release
version 0.3.2 on Jan 5th, 2011

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).

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.