Skip to main content

A python package to create markdown text.

Project description

PyPI - Version PyPI - License PyPI - Downloads Publish PyPi CI

pymarkdownroh

The pymarkdownroh package contains pyhton modules to create markdown text from python scripts.

Table of Contents

  1. Introduction
  2. Getting started
    1. Prerequisites
    2. Installation
  3. How to use
    1. How to import
    2. Using the module
  4. Releasing
  5. License

Introduction

This package contains different modules which enable users to write markdown text via python objects. It implements all aspects of the official Markdown Documentation.

The intention of this package is to automatically write markdown files using scripts with templates.

Currently it does not support extended functionality like tables which are often used in github flavored markdown.

Getting started

Prerequisites

  • Python installed
  • Operatingsystem: Linux or Windows, not tested on mac
  • IDE like VS Code, if you want to contribute or change the code

Installation

There are two ways to install this module depending on the way you work and the preinstalled modules:

  1. pip install pymarkdownroh
  2. python -m pip install pymarkdownroh

How to use

How to import

You can import the module in two ways:

    import pymarkdownroh

This will import all functions. Even the ones that are not supposed to be used (helper functions).

    from pymarkdownroh import *

This will import only the significant functions, meant for using.

Using the module

Example 1:

# Import all modules from package.
from pymarkdownroh import *

print(create_headline(1, "Document Title"))

# Output:
# 
# "# Document Title"
# Import all modules from package.
from pymarkdownroh import *

l = ["Apples", "Bananas", "Cherries"]

print(create_list(l, True, True))

# Output:
#
# 1. [] Apples
# 2. [] Bananas
# 3. [] Cherries

Releasing

Releases are published automatically when a tag is pushed to GitHub.

# Create release variable.
$Release = "x.x.x"
# Create commit.
git commit --allow-empty -m "Release $Release"
# Create tag.
git tag -a $Release -m "Version $Release"
# Push from original.
git push origin --tags
# Push from fork.
git push upstream --tags

License

MIT

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

pymarkdownroh-0.0.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

pymarkdownroh-0.0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file pymarkdownroh-0.0.1.tar.gz.

File metadata

  • Download URL: pymarkdownroh-0.0.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymarkdownroh-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7beb4114ba312d406ea1416a5370c892ba9e395e1a92087b2f3602b93bf09005
MD5 229bb5672c06035451e98fa1866b2951
BLAKE2b-256 2c144aafb4337030bb9ad966ea13f40766e3936488ba9f2c641e3a3842de9920

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymarkdownroh-0.0.1.tar.gz:

Publisher: release.yaml on IT-Administrators/pymarkdownroh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymarkdownroh-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pymarkdownroh-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymarkdownroh-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0efccc30654497bdb3c10818a202ac198937be75c97be04de262058aa7b57f2e
MD5 a5be55e3221260b3e27f50e60deecc9a
BLAKE2b-256 d8dd219d81f9b346b28401b1e86f2cf50fe782574d0560f95b643ebb8a096f40

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymarkdownroh-0.0.1-py3-none-any.whl:

Publisher: release.yaml on IT-Administrators/pymarkdownroh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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