Skip to main content

No project description provided

Project description

duckdown

Duckdown is a tornado application. It uses python-markdown to convert pages to html dynamically and then presents those pages though tornado templates. This provides an easy syntax for users to edit their content and developers the ability to style the presentation.

The templates, static files and pages can be hosted on Amazon S3. The published site is static and can make use of CDN resources. The cost of hosting a site in this way would ¢ ranther than $ per month.

In order to make the site secure you would still need to host the site in Route53 and provide Amazon hosted certificate and we're writing a tool to automate that. The editing service can be provided by heroku on a hobby server - the one I'm looking at now uses 38mb of the memory and idles at 0 load!

Tools:

Duckdown installed is an invoke tool that you call from the command line.

% duckdown -l
Subcommands:

  create    create a duckdown app at path
  publish   generate public site
  run       run app

create

% duckdown create site

This will create a folder in the current directory called site which contains three folders: templates, static, pages.

  • tempates: contains the site_tmpl.html used to render markdown pages
  • static: contains resouces used by templates
  • pages: contains markdown pages stating with index.md

To use

python3 -m venv venv
source venv/bin/activate
pip install duckdown
duckdown create site
duckdown run site

You view the site on: http://localhost:8080

You can edit the site at http://localhost:8080/edit

the defaut username/password:

username: admin
password: admin

Dev

python3 -m venv venv
source venv/bin/activate
pip install -r dev-requirements.txt
inv server

Now using: https://prismjs.com

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

duckdown-0.0.44.tar.gz (76.3 kB view details)

Uploaded Source

Built Distribution

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

duckdown-0.0.44-py3-none-any.whl (106.8 kB view details)

Uploaded Python 3

File details

Details for the file duckdown-0.0.44.tar.gz.

File metadata

  • Download URL: duckdown-0.0.44.tar.gz
  • Upload date:
  • Size: 76.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for duckdown-0.0.44.tar.gz
Algorithm Hash digest
SHA256 52211f064781d414d2318bb2dc5840cb85d87c10e083db6e531f66ecd5524f22
MD5 ed52c04432e8f2c98267ff6ce1c75c15
BLAKE2b-256 1cd28a333eb9a8f0764034c7807b609ba6a151e6cf0f2ea95f9d79185aea3e45

See more details on using hashes here.

File details

Details for the file duckdown-0.0.44-py3-none-any.whl.

File metadata

  • Download URL: duckdown-0.0.44-py3-none-any.whl
  • Upload date:
  • Size: 106.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for duckdown-0.0.44-py3-none-any.whl
Algorithm Hash digest
SHA256 182130da5b2f481d3716bd05d4510bc315a20fd38c6b6844ebee71c93d003925
MD5 3c733965cf0316a60f991b5927a921cc
BLAKE2b-256 31425d8d6be8f8dea2868c3988165f446267061fbed2f6df1eb4f734155fc319

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