twarc-ids
This module is a simple example of how to create a plugin for twarc. It uses click-plugins to extend the main twarc command, and to manage the command line options.
First you need to install twarc and this plugin:
pip install twarc
pip install twarc-ids
Now you can collect data using the core twarc utility:
twarc search blacklivesmatter > tweets.jsonl
And you have a new subcommand ids that is supplied by twarc-ids.
twarc ids tweets.jsonl > ids.txt
It's good practice to include some tests for your module. See test_twarc_ids.py for an example. You can run it directly with pytest or using:
python setup.py test
When creating your setup.py make sure you don't forget the entry_points magic so that twarc will find your plugin when it is installed!
Metadata
Release files for twarc-ids 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| twarc-ids-0.0.3.tar.gz | 2.2 kB | Without provenance | Details for twarc-ids-0.0.3.tar.gz |
Release files / twarc-ids-0.0.3.tar.gz
| Download URL | twarc-ids-0.0.3.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e3166b0fee5dbcf20dca7ff3d7f6bd53883561c33049d652f6d3566dfff31d6
|
|
BLAKE2b-256 checksum How to use checksums |
fe6b045a96f4c886a313a2e8474a28503ca326fb22faac6c025f035f531a61a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for twarc-ids 0.0.3
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.