Bot framework for camptocamp.org
## Installation
```batch
pip install campbot
```
## Command line usage
### Export recent contribution
This command will load all contributions made in the last 24 hours
```batch
campbot contributions
```
Optional arguments :
* `-starts=2017-12-07` : will export all contributions after this date (included)
* `-starts=2017-12-07` : will export all contributions before this date (excluded)
* `--out=data.csv` : out file name, default value is `contributions.csv`
### Migrate BBCodes
```batch
campbot remove_bbcode <ids_file> --login=<login> --password=<password> [--delay=<seconds>] [--batch]
```
* *ids_files :* path to a file thtat contains document's ids to migrate. Format is :
```
id1 | w
id2 | r
```
* *batch :* do not ask confirmation before saving a document. Use very carefully
* *delay :* delay in second between each request. Defaut is 1 seconds.
### Check recent changes
Check that last day modifications pass these tests :
* History is filled
* No big deletions
* And all patterns present in the first message of topic where report should be posted
```batch
campbot check_recent_changes <message_url> --langs=<langs> --login=<login> --password=<password> [--delay=<seconds>]
```
### Check poll voters
Check that voters in a poll forum has at least one contribution during last 180 days
```batch
campbot check_voters <message_url> --login=<login> --password=<password>
```
<message_url> is the url of the massage that contains the poll you need to check
Metadata
Release files for campbot 0.0.13
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 | |
|---|---|---|---|---|
| campbot-0.0.13.tar.gz | 20.2 kB | Without provenance | Details |
Release files / campbot-0.0.13.tar.gz
| Download URL | campbot-0.0.13.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6dd14ea144d9f1d9c86aff4e4bd353126d2cbd12975e52012a0fd50a44940be
|
|
BLAKE2b-256 checksum How to use checksums |
d352fc7d00b4a4cf9184b8eabc01354a56e25dcab693be8be8324b0ff776e54f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for campbot 0.0.13
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.