Skip to main content

Experiment: going all in on a static site, where pure HTML is the only storage format using semantic HTML5 and schema.org microdata.

Currently developed and tested only on Python 3, although some effort has been made to keep backporting easy if necessary.

WARNING: changes highly likely until it hits 1.0…

Philosophy

  • Command-line tools used to manage a static site which will be uploaded to something supported by Apache libcloud — currently tested with Rackspace Cloud Files.

  • No template language is assumed, avoiding any impedance mismatches between modern HTML and the tooling or the need to have anything other than a browser to render pages. What you test is what you get.

  • HTML templates can be developed live in a browser; all content with the placeholder class will be removed by the apply-template command.

  • No attempt is made to provide change tracking – it’s highly recommended that you use Git, Mercurial, etc. on the site base directory instead.

Getting Started

Installation

  • pip install simple-cloud-site

  • Run simple-cloud-site --help to list commands

Configuration

  1. Create index.html and post.html templates in _templates/

  2. Create .simple-cloud-site.cfg with site-specific configuration:

    [auth]
    username=YOUR_USERNAME
    api-key=YOUR_API_KEY
    region=YOUR_REGION
    
    [site]
    container=YOUR_CONTAINER_NAME
    base_url=BASE_URL
    site_title=SITE_TITLE_FOR_FEEDS
    site_description=SITE_DESCRIPTION_FOR_FEEDS
    
    [author]
    name = YOUR_NAME
    email = YOUR_EMAIL
  3. Optionally, enable shell completion using the output of simple-cloud-site complete – for example, in a virtualenvwrapper postactivate script:

    eval "$( simple-cloud-site complete )"

Applying Templates

simple-cloud-site apply-template [--template=filename] path/to/post.html

Previewing

simple-cloud-site devserver

Open the listed URL in your browser

Publishing

simple-cloud-site publish

Open the public URL in your browser

Release files for simple-cloud-site 0.1.0

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

Source distribution (sdist)

Source distribution for simple-cloud-site 0.1.0
File Size Uploaded
simple-cloud-site-0.1.0.tar.gz 17.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-cloud-site 0.1.0
File Interpreter ABI Platform
simple_cloud_site-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 37.1 kB

Release files / simple-cloud-site-0.1.0.tar.gz

Download URL simple-cloud-site-0.1.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3ab64e9490dcf325b4d90766e6db5630c3ee155ac63ab9900fc497eb8c5e0919
BLAKE2b-256 checksum
How to use checksums
052f32a2ca3ff18ed8986e3cf2d6e518e7dbc098b95fb0a56d8f08d2b134447f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / simple_cloud_site-0.1.0-py2.py3-none-any.whl

Download URL simple_cloud_site-0.1.0-py2.py3-none-any.whl
Size 19.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
89535073579342d9b26303940e3d4743602ab6187aed3df386eee84cc286d1ff
BLAKE2b-256 checksum
How to use checksums
674a388b39e10252b659a3a1b893b7614e326e8d559c6569ebf2fdc47c0b8046
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.3

1 release file

0.0.2

1 release file

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