Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.0rc1

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

Built distribution (wheel)

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

Total release size: 42.9 kB

Release files / aiomailru-0.1.0rc1.tar.gz

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

Download URL aiomailru-0.1.0rc1-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba8a14b6ecd7b2a4df0d2c58279702173f0ae36474bdd3e6a9c0b61e33fe6b79
BLAKE2b-256 checksum
How to use checksums
d29eb6d78ef5565b0d113d6a4594a1c5605b8da974862e213b49dc71c87d8e74
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.0rc1

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