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://readthedocs.org/projects/aiomailru/badge/?version=latest https://travis-ci.org/KonstantinTogoi/aiomailru.svg

aiomailru

aiomailru is a python Mail.Ru API wrapper. The main features are:

Usage

To use 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.post1

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.post1
File Size Uploaded Provenance Actions
aiomailru-0.1.0.post1.tar.gz 19.6 kB Without provenance Details for aiomailru-0.1.0.post1.tar.gz

Built distribution (wheel)

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

Total release size: 42.9 kB

Release files / aiomailru-0.1.0.post1.tar.gz

Download URL aiomailru-0.1.0.post1.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d27bdcf1226007536e79107e5139b7c150fb99021969a16023c708f417db2b31
BLAKE2b-256 checksum
How to use checksums
64bc466eb8211e86e0b72ea7bc787dc4bf97c23fc367a4aea85219029cfc52d5
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.post1-py3-none-any.whl

Download URL aiomailru-0.1.0.post1-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
349f76c49b9115aeb197e97a7cea0d00b7a7773681031d5f58025574a8cc0398
BLAKE2b-256 checksum
How to use checksums
7755930e53bcfffbe57c78cee8d82173ac71ce9b11fb6ec009cfe11b7fafcf41
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.post1

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