A python package to create markdown text.
Project description
pymarkdownroh
The pymarkdownroh package contains pyhton modules to create markdown text from python scripts.
Table of Contents
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:
pip install pymarkdownrohpython -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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7beb4114ba312d406ea1416a5370c892ba9e395e1a92087b2f3602b93bf09005
|
|
| MD5 |
229bb5672c06035451e98fa1866b2951
|
|
| BLAKE2b-256 |
2c144aafb4337030bb9ad966ea13f40766e3936488ba9f2c641e3a3842de9920
|
Provenance
The following attestation bundles were made for pymarkdownroh-0.0.1.tar.gz:
Publisher:
release.yaml on IT-Administrators/pymarkdownroh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymarkdownroh-0.0.1.tar.gz -
Subject digest:
7beb4114ba312d406ea1416a5370c892ba9e395e1a92087b2f3602b93bf09005 - Sigstore transparency entry: 771217202
- Sigstore integration time:
-
Permalink:
IT-Administrators/pymarkdownroh@131972ab8c66f1fb762418015708c082769d8a4c -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/IT-Administrators
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@131972ab8c66f1fb762418015708c082769d8a4c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0efccc30654497bdb3c10818a202ac198937be75c97be04de262058aa7b57f2e
|
|
| MD5 |
a5be55e3221260b3e27f50e60deecc9a
|
|
| BLAKE2b-256 |
d8dd219d81f9b346b28401b1e86f2cf50fe782574d0560f95b643ebb8a096f40
|
Provenance
The following attestation bundles were made for pymarkdownroh-0.0.1-py3-none-any.whl:
Publisher:
release.yaml on IT-Administrators/pymarkdownroh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymarkdownroh-0.0.1-py3-none-any.whl -
Subject digest:
0efccc30654497bdb3c10818a202ac198937be75c97be04de262058aa7b57f2e - Sigstore transparency entry: 771217210
- Sigstore integration time:
-
Permalink:
IT-Administrators/pymarkdownroh@131972ab8c66f1fb762418015708c082769d8a4c -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/IT-Administrators
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@131972ab8c66f1fb762418015708c082769d8a4c -
Trigger Event:
push
-
Statement type: