Skip to main content

Minimal, libre bulletin board for posts.

Project description

poaster


builds.sr.ht status PyPI - Version License: AGPL v3

Minimal, libre bulletin board for posts.

Quickstart

Install package:

pip install poaster

Initialize application:

poaster init

Add a user:

poaster users add

Launch application server:

poaster run

Navigate to /api/docs to see API documentation.

Development

The easiest way to develop locally with poaster is to use hatch. With hatch, you will have access to important helper scripts for running locally, linting, type-checks, testing, etc.

Testing

Lint and check types with:

hatch run types:check

Run test suite and report coverage with:

hatch run cov

Database Management

To upgrade the local database to latest schema, run:

hatch run db:upgrade

Now that the tables are created, you can add fixtures:

hatch run db:fixtures

If you add or update a table, you can generate a migration script by running:

hatch run db:migration

If the migration script wasn't generated, check to see if you imported the model to env.py.

Local Server

Run the application server locally with:

hatch run dev

The server should reload on changes to the source code.

License

poaster is distributed under the terms of the AGPLv3 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poaster-1.2.0.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

poaster-1.2.0-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

Details for the file poaster-1.2.0.tar.gz.

File metadata

  • Download URL: poaster-1.2.0.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.26.0

File hashes

Hashes for poaster-1.2.0.tar.gz
Algorithm Hash digest
SHA256 50383e51664144817982b043ed304a3ff492e91f347a9fe33cf3febd46094445
MD5 d42d49e72caf35252063fbad2cb2254f
BLAKE2b-256 eaf9db0b2b7d64b0f7f0d592784bc395299ef125d58620701dba6c38aa1b2f02

See more details on using hashes here.

File details

Details for the file poaster-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: poaster-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 33.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.26.0

File hashes

Hashes for poaster-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b213056ca268d49012ee32328ddd86479aed237f73e2f42c21b5955e825b52a2
MD5 49616c5cfb80c2694db4dbfd690d9fdf
BLAKE2b-256 c8b69ffab1b33ae97933504ba21fe44757d5634062892068cdc162259177b49c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page