$ pip install -e .Configuration is read from a config.json in the working directory. Its options are:
-
databaseA PostgreSQL DSN or dict of parameters as accepted by psycopg2.
-
maximum_ratingThe maximum rating of content to export. One of:
generalmatureexplicit
-
includeThe users whose data should be exported. Either a list of ids or the string
"all"to export data for all users.
$ pg_dump --file=schema.sql --no-owner --schema-only --schema=public --dbname=$weasyl_db --username=$weasyl_user
$ POSIXLY_CORRECT= patch schema.sql schema.patch
$ python -m weasyl_smallcopy