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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file no_comment-0.1.6.tar.gz
.
File metadata
- Download URL: no_comment-0.1.6.tar.gz
- Upload date:
- Size: 105.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.7 Linux/6.5.7-gnu
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6d8a218d7e0183c9bc964346e0f6dc1f09ded82f89c469239481f43b6d378f |
|
MD5 | a20fdf920475470f83a3e422f210015e |
|
BLAKE2b-256 | 7abcf77393667c73d3430f414b6f2319e7299061d6ea63411bb559e0c813ca79 |
File details
Details for the file no_comment-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: no_comment-0.1.6-py3-none-any.whl
- Upload date:
- Size: 138.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.7 Linux/6.5.7-gnu
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed919938048ab84fa1b81608d49a2c0e100761a93634cd826803b95b2c6d5631 |
|
MD5 | 7b0f3e0d3478aaecfb25914c01bf1b42 |
|
BLAKE2b-256 | 8803eaa4a981b22d2d98494ca1f6ff7cb8cb2c834fb94c19dccbede644ba36e1 |