Skip to main content
https://img.shields.io/badge/license-BSD-blue.svg https://img.shields.io/pypi/v/aiomailru.svg https://img.shields.io/pypi/pyversions/aiomailru.svg https://img.shields.io/badge/docs-latest-brightgreen.svg https://travis-ci.org/KonstantinTogoi/aiomailru.svg

aiomailru

aiomailru is a my.mail.ru python API wrapper. The main features are:

Usage

To use Platform@Mail.Ru API you need a registered app and Mail.Ru account. For more details, see aiomailru Documentation.

Client application

Use ClientSession when REST API is needed in:

  • a client component of the client-server application

  • a standalone mobile/desktop application

i.e. when you embed your app’s info (private key) in publicly available code.

from aiomailru import ClientSession, API

session = ClientSession(app_id, private_key, access_token, uid)
api = API(session)

events = await api.stream.get()
friends = await api.friends.getOnline()

Pass access_token and uid that were received after authorization. For more details, see aiomailru Documentation.

Server application

Use ServerSession when REST API is needed in:

  • a server component of the client-server application

  • requests from your servers

from aiomailru import ServerSession, API

session = ServerSession(app_id, secret_key, access_token)
api = API(session)

events = await api.stream.get()
friends = await api.friends.getOnline()

Pass access_token that was received after authorization. For more details, see aiomailru Documentation.

Installation

$ pip install aiomailru

or

$ python setup.py install

Supported Python Versions

Python 3.5, 3.6, 3.7 and 3.8 are supported.

Test

Run all tests.

$ python setup.py test

Run tests with PyTest.

$ python -m pytest [-k TEST_NAME]

License

aiomailru is released under the BSD 2-Clause License.

Metadata

Release files for aiomailru 0.1.0

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

Source distribution (sdist)

Source distribution for aiomailru 0.1.0
File Size Uploaded Provenance Actions
aiomailru-0.1.0.tar.gz 19.6 kB Without provenance Details for aiomailru-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiomailru 0.1.0
File Interpreter ABI Platform Actions
aiomailru-0.1.0-py3-none-any.whl Python 3 none any Details for aiomailru-0.1.0-py3-none-any.whl

Total release size: 42.8 kB

Release files / aiomailru-0.1.0.tar.gz

Download URL aiomailru-0.1.0.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6dade070dab1c84366ba98715c6028933bd2012507fe20aec480c958ddba0eaf
BLAKE2b-256 checksum
How to use checksums
998ad314937a60d6cabe959c501464bf4a96ee40da37273fcf6681779ab6939c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.5.6

Release files / aiomailru-0.1.0-py3-none-any.whl

Download URL aiomailru-0.1.0-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c0a391e261257139578d7072c9675cf691314b3d818c6ed6257d88d8b4567ac
BLAKE2b-256 checksum
How to use checksums
3a2b916f817831f143e5d705fbc5aecfb4b1349bbf283599c62fa69f41efe9eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.5.6

Security for aiomailru 0.1.0

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.

Release history Release notifications | RSS feed

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