2019-11-29 02:31:45 -05:00
|
|
|
# mstdn-block
|
|
|
|
|
2019-11-29 02:51:08 -05:00
|
|
|
Manage instance blocks on mastodon
|
|
|
|
|
2019-11-29 02:58:20 -05:00
|
|
|
Note: currently only import and export commands are supported. Also only tested with Glitch-Soc 3.0.1.
|
|
|
|
|
2019-11-29 02:51:08 -05:00
|
|
|
## Installation
|
2019-11-29 14:49:25 -05:00
|
|
|
|
|
|
|
Minimum Python version: 3.6.0
|
|
|
|
|
2019-11-29 02:51:08 -05:00
|
|
|
`pip install -r requirements.txt`
|
2019-11-29 02:52:20 -05:00
|
|
|
|
2019-11-29 15:24:07 -05:00
|
|
|
Copy 'block.py' or set MASTOPATH to your Mastodon root directory
|
2019-11-29 02:51:08 -05:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
If the path to a csv file is not specified, 'blocks.csv' in the current directory will be used.
|
|
|
|
|
|
|
|
### Import blocklist in csv format
|
|
|
|
|
|
|
|
`./block.py import [path/to/csv]`
|
|
|
|
|
|
|
|
### Export blocklist in csv format
|
|
|
|
|
|
|
|
`./block.py export [path/to/csv]`
|