Skip to main content

## Micropress

Micropress – Python blog generator for hackers.

  • open source

  • jinja templates

  • configurable directories and configs

  • smart file tree organization

  • markdown markup

  • auto detect changes and generation

  • auto upload

  • auto filling post time

  • live preview at [http://127.0.0.1:8080](http://127.0.0.1:8080)

### Install

sudo pip install micropress micropress init — install default (~/.microrc) and default templates (~/Documents/Micropress/) directory.

### Config

vim ~/.microrc

[system] author = fluder host = fluder.co name = Geek Blog timezone_offset = 120 post_per_page = 10 exclude_category = How-to

[storage] build = ~/.build/micropress public = ~/Documents/Micropress/public templates = ~/Documents/Micropress/templates pages = ~/Documents/Micropress/sources/pages posts = ~/Documents/Micropress/sources/posts

[sync] to = remote.host.name:/path/to/www # rsync path key = ~/.ssh/id_rsa # ssh key for autosync feature

[locale] month = January, February, March, April, May, June, July, August, September, October, November, December days = Mon, Tue, Wed, Thu, Fri, Sat, Sun

### Usage

micropress add post-name then just write post, save and exit, working like a charm.

#### Linux

micropress preview — start webserver preview micropress watch — start file changes watcher

#### Manual mode

micropress generate — save public and generated content into build directory. micropress sync — upload content on production server.

### Uninstall

pip uninstall micropress rm ~/.microrc rm -r ~/Documents/Micropress launchctl unload -w co.fluder.micropress.watcher.plist launchctl unload -w co.fluder.micropress.preview.plist rm -r ~/Library/LaunchAgents/co.fluder.micropress.watcher.plist rm -r ~/Library/LaunchAgents/co.fluder.micropress.preview.plist

### Templates

Template engine is [Jinja2](http://jinja.pocoo.org/docs/), full support features.

### Headers

— title: “” categories: View name/Link name time: - # automatic change on save if autosync enabled autosync: true # automatic upload after edit —

### Sync options

#### S3

[sync] type = s3 bucket = BUCKET_NAME access_key_id = ACCESS_KEY_ID secret_access_key = SECRET_ACCESS_KEY

#### RSync

[sync] to = remote.host.name:/path/to/www # rsync path key = ~/.ssh/id_rsa # ssh key for autosync feature

Metadata

Release files for micropress 0.2.18

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

Source distribution (sdist)

Source distribution for micropress 0.2.18
File Size Uploaded Provenance Actions
micropress-0.2.18.tar.gz 163.3 kB Without provenance Details for micropress-0.2.18.tar.gz

Release files / micropress-0.2.18.tar.gz

Download URL micropress-0.2.18.tar.gz
Size 163.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fc074e1b9b02302f134d2a3704f5fbc1eb4fb7b6f1284efd343aa1418897b07c
BLAKE2b-256 checksum
How to use checksums
fb7c0cb7e778cf996bc4ac7470c62ea8e3e15bb37f88a5f0844e8de5242ca898
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for micropress 0.2.18

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