Skip to main content

Smilepack

A website where you can create collections on smiles and use it on other sites.

Quick start

Install Smilepack from PyPI:

pip3 install smilepack

Create administrator account:

smilepack createsuperuser

It also creates database.sqlite3 in current directory.

Run HTTP server:

smilepack runserver

Now website is available at http://localhost:5000/ and ready for use, but uploading of icons and smiles is recommended:

Open http://localhost:5000/login/ and login as administrator. Open http://localhost:5000/admin/, click “Other actions” -> “Icon management” and upload at least one icon (don’t forget to configure uploader if you wish upload icon from computer). Tick uploaded icon to publish it, and refresh the page. Now you can create categories of collection and upload smiles here.

For production you can use gunicorn (or another WSGI server):

gunicorn -w 4 ‘smilepack.application:create_app()’

Configuration

You can change default settings by .py file containing configuration class. Example in examples/settings.py. Save it as local_settings.py and load using environment variable:

export SMILEPACK_SETTINGS=local_settings.Production

You can specify any Python object. Be sure that local_settings.py must be available in PYTHONPATH.

For development you can inherit class smilepack.settings.Development, for production use smilepack.settings.Config.

Database

Smiles

Smiles need to be stored somewhere. Use UPLOAD_METHOD:

  • None (default) — don’t save. All smiles should be uploaded to some hosting in advance.

  • ‘imgur’ — upload to Imgur. For this, set IMGUR_ID of API application. You need to install Flask-Imgur.

  • ‘directory’ — upload to SMILES_DIRECTORY.

ICON_UPLOAD_METHOD setting is similar.

If upload method is set, you can disable custom urls of smiles by ALLOW_CUSTOM_URLS = True. Then all links of user will reuploaded.

SMILE_URL — template for links of smiles stored in SMILES_DIRECTORY. Default /smiles/images/{filename}; if you use another url (CDN for example), you can set another template here. ICON_URL setting is similar.

Utilites

  • smilepack status — partly verifies the operability of configuration and database;

  • smilepack shell — runs interactive console with application.

Metadata

Release files for smilepack 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smilepack 0.2.1
File Size Uploaded Provenance Actions
smilepack-0.2.1.tar.gz 68.2 kB Without provenance Details for smilepack-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smilepack 0.2.1
File Interpreter ABI Platform Actions
smilepack-0.2.1-py3-none-any.whl Python 3 none any Details for smilepack-0.2.1-py3-none-any.whl

Total release size: 502.9 kB

Release files / smilepack-0.2.1.tar.gz

Download URL smilepack-0.2.1.tar.gz
Size 68.2 kB
Tags Source
SHA-256 checksum
How to use checksums
32d1908d4ca54665b55d91c5a9cd10adb3b6cbc43a2b2a9cfd12c1425916e37b
BLAKE2b-256 checksum
How to use checksums
cf0eb8ac1ce78501ee3c1eb4ca81a3782d797aa898253e739a399ec2d3605698
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / smilepack-0.2.1-py3-none-any.whl

Download URL smilepack-0.2.1-py3-none-any.whl
Size 434.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
518fcc6f8116e232b226f49ae7b6db9b124a1ee7108892b585f25d79e46e5382
BLAKE2b-256 checksum
How to use checksums
307dcde1934f214f6e10f1f45dc4d83d3e640be8381cb12e2c9f768b25bb46d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for smilepack 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page