Skip to main content

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

Project description

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

Quick start

pip3 install smilepack

smilepack runserver

It creates database.sqlite3 in current directory. Address http://localhost:5000/.

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

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

Configuration

Default settings are change 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.

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.

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.

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

smilepack-0.1.1.tar.gz (43.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smilepack-0.1.1-py3-none-any.whl (202.3 kB view details)

Uploaded Python 3

File details

Details for the file smilepack-0.1.1.tar.gz.

File metadata

  • Download URL: smilepack-0.1.1.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for smilepack-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c094f93ae2b5c820a00730ba672f7490e908c72c3ffcdfd1d1c4df6e683cf383
MD5 6921f376b97607b197c3b6c768b5cb02
BLAKE2b-256 99643ae5c9055752ea1a27707b7aee3149d4e63b18708adc78c0cde7be7f3c22

See more details on using hashes here.

File details

Details for the file smilepack-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for smilepack-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ea214c926a25d94fc4ac620ff3363d96b8309bf7cdebd4307ce65ecc41dd50e
MD5 9691267e8b35487a9865128db099bb9b
BLAKE2b-256 1c13ba7e583461aa2ce05753f11e4412438ccfd7b344cba62bad187410d200a8

See more details on using hashes here.

Supported by

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