Skip to main content

An overkill blog previews generator

Project description

Graff

An Minimal Overkill HTML only blog posts previews generator.

Setup

pip install pygraff to install

look at settings.toml for example config

Set the GRAFF_CONF environment to the location of graff config.

Usage

graff -n <Page name> to create new blog page in posts_dir.

graff -g to generate previews.

What needs to be done

  • Add <a> tag to the title of the previews that links to the article
  • groff.py: file where it calls the functions from settings.py and generator.py
  • Error handling : missing or wrong values from the settings.toml file should return an error message warranting the user and not starting generation so we need a checker in settings.py and also in generator.py in case the class of the blog previews doesn't exist or the file isn't even html.
  • add creating new blog posts with command new and with chosen template

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

pygraff-1.2.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

pygraff-1.2.1-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pygraff-1.2.1.tar.gz.

File metadata

  • Download URL: pygraff-1.2.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pygraff-1.2.1.tar.gz
Algorithm Hash digest
SHA256 8eab7e224df95ef6b416187bd23b4116b46f2d6c893a97e5bca0951df189dc15
MD5 5e6b101ee956c526d0b429810dcb8850
BLAKE2b-256 68982ee1a5f7247d7faba8df103e95f71e4562ed3816d36e48579afda11b11c9

See more details on using hashes here.

File details

Details for the file pygraff-1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pygraff-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pygraff-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 feafd299de42e126a4262026e8ffbff34af7279ee84bdd2190a1e8fd0a3ba966
MD5 4eac6394e0997d99d6534fa3916b4734
BLAKE2b-256 a6f91610127ca50e2c7d381b9f32d58e07243148f4248c6d9be6392c6aff0983

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