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.49.tar.gz (84.5 kB view details)

Uploaded Source

Built Distribution

duckdown-0.0.49-py3-none-any.whl (117.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: duckdown-0.0.49.tar.gz
  • Upload date:
  • Size: 84.5 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.54.0 CPython/3.9.0

File hashes

Hashes for duckdown-0.0.49.tar.gz
Algorithm Hash digest
SHA256 548737300b06158ca51613bf59609a09585a69b7ebb6c1828a166e54244fe187
MD5 9f6c9b518a7a8bb5c132a179514a88b9
BLAKE2b-256 0bf306ee4af3956f0256982d5c4f296ba30890c6b1546fba5d027beeb77a50bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: duckdown-0.0.49-py3-none-any.whl
  • Upload date:
  • Size: 117.3 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.54.0 CPython/3.9.0

File hashes

Hashes for duckdown-0.0.49-py3-none-any.whl
Algorithm Hash digest
SHA256 4030cd820bf7fd3d594f467bcdff4d308ac5c40520cec0bc6aebcec425ed27bf
MD5 b066ba511046bbbfa3126aeef7820ac4
BLAKE2b-256 d3a4c879cd1d1c488a13480e9e39535f08b0bb8ec0fc98fece67f001b566e5fd

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