Mala
Get metadata from DHT network. A BEP-9 implementation on Python 3.5+
Usage
import asyncio
from mala import get_metadata
loop = asyncio.get_event_loop()
metainfo = loop.run_until_complete(get_metadata(
'infohash', 'ip', 'port', loop=self.loop
)
Or, use with Maga
from maga import Maga
from mala import get_metadata
class Crawler(Maga):
async def handle_get_peers(self, infohash, addr):
pass
async def handle_announce_peer(self, infohash, addr, peer_addr):
metainfo = await get_metadata(
infohash, peer_addr[0], peer_addr[1], loop=self.loop
)
crawler = Crawler()
crawler.run(port=0)
Metadata
Release files for Mala 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Mala-0.1.0.zip | 6.7 kB | Without provenance | Details for Mala-0.1.0.zip | |
| Mala-0.1.0.tar.gz | 4.1 kB | Without provenance | Details for Mala-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Mala-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for Mala-0.1.0-py2.py3-none-any.whl |
Total release size: 15.1 kB
Release files / Mala-0.1.0.zip
| Download URL | Mala-0.1.0.zip |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23397c02f3d41dfd9f50198891054ac575766d57663e43fee20e5636955733b8
|
|
BLAKE2b-256 checksum How to use checksums |
6e1180ffd26f0384a4384f85ed0e90bad748afe2aee74f64a44d85712e4c51ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Mala-0.1.0.tar.gz
| Download URL | Mala-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ece2173ce3b163aa0bd37525bcc29742a66d7266b9781fd3cc64d5321888f51
|
|
BLAKE2b-256 checksum How to use checksums |
d060634bba84ba55b468f0eeb278740eef854ef8b7a48ee212987b6f5a390e1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Mala-0.1.0-py2.py3-none-any.whl
| Download URL | Mala-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ed5bc0130ce6374f8ef091f216800ac735bcb93d9ee115f7d256f8f4f0e599c2
|
|
BLAKE2b-256 checksum How to use checksums |
97a4ac11e769ae60393618fb0095bd9e1a9a1f832acff016415aecc70be95729
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Mala 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.