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

Use access_token and uid that were received after authorization. For more details, see authorization instruction.

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

Use access_token that was received after authorization. For more details, see authorization instruction.

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

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.1
File Size Uploaded Provenance Actions
aiomailru-0.1.1.tar.gz 19.7 kB Without provenance Details for aiomailru-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 42.9 kB

Release files / aiomailru-0.1.1.tar.gz

Download URL aiomailru-0.1.1.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
800cfcb8f3844793c0caf6c53c8977eb00f81e6c07f4cfc288f29eb8c655a089
BLAKE2b-256 checksum
How to use checksums
659a73a3a8bc76f7dbbce224eb893bf47f6169533bd9778216ed4ba9a5e4e0ce
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.1-py3-none-any.whl

Download URL aiomailru-0.1.1-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
482752c0e0ae11f0fbba92c3546160522617d9ad5dd95f33a8e9007221f95e74
BLAKE2b-256 checksum
How to use checksums
b78f24102dfd05bc1e65d341ebeec8736fa148a8c65bd586f0857c9bf0f3c4d5
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.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.

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