Skip to main content

Comment any resource on the web!

Project description

NoComment

Comment any resource on the web!

Install

NoComment is available on PyPI under the name no-comment. To install, just run python -m pip install no-comment.

Configure

NoComment is configured using environment variables. See the settings module for a comprehensive list of configuration variables.

All the variable names must be prefixed with NO_COMMENT_. For instance :

# The secret can be generated using the `secrets.token_hex()` function.
$ export NO_COMMENT_SECRET_KEY="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

# Additional Python database drivers might be required depending on the DSN.
$ export NO_COMMENT_DSN="sqlite:///data.sqlite"

Authentication

TOTP authentication is provided to be able to login on servers that do not (yet) support the cryptography module. You must install extra dependencies (no-comment[totp]) and enable it explicitly by setting a base32 random secret:

# The secret can be generated using the `pyotp.random_base32()` function.
$ export NO_COMMENT_TOTP_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Note that it is a highly insecure way of authenticating, as anyone gaining access to your OTP generator would be able to login.

Initialise

Once configured, you must initialise NoComment's database with the dedicated command:

$ no-comment init-db

Run

NoComment being a Flask application, it can be run using any WSGI server, for instance, with Gunicorn:

$ gunicorn --access-logfile="-" -w 4 -b 127.0.0.1:3000 "no_comment.configuration.wsgi:app()"

You can now access the service at http://127.0.0.1:3000/MY_STREAM_NAME.

Contributing

See CONTRIBUTING.md to set up a development environment.

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

no-comment-0.1.0a9.tar.gz (100.5 kB view details)

Uploaded Source

Built Distribution

no_comment-0.1.0a9-py3-none-any.whl (130.6 kB view details)

Uploaded Python 3

File details

Details for the file no-comment-0.1.0a9.tar.gz.

File metadata

  • Download URL: no-comment-0.1.0a9.tar.gz
  • Upload date:
  • Size: 100.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/6.3.12-gnu

File hashes

Hashes for no-comment-0.1.0a9.tar.gz
Algorithm Hash digest
SHA256 3ce15191d01abd32cf2cc973498e8402ae1c8ffc150966e18d3a2d142c4aea14
MD5 040aa0ca861bad53db49baeef434afac
BLAKE2b-256 18b851c4e296be331b451712a82bfde49e13bbc24620d56c078b0d3e3c8f9d6c

See more details on using hashes here.

File details

Details for the file no_comment-0.1.0a9-py3-none-any.whl.

File metadata

  • Download URL: no_comment-0.1.0a9-py3-none-any.whl
  • Upload date:
  • Size: 130.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/6.3.12-gnu

File hashes

Hashes for no_comment-0.1.0a9-py3-none-any.whl
Algorithm Hash digest
SHA256 519537ca8ef5da986525ec405fcc98f23e3ed3998efa17d2d3cc147486dfa569
MD5 cfc58d8062adda13ed73e64191868ab0
BLAKE2b-256 4a3eba35731158f30844a89df2d6ded3039f611e1dc2fae3a6f41a691441bbc5

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