Skip to main content

Effortlessly convert nested Python dictionaries into intuitive Markdown tables.

Project description

mdfy logo

mdfy

Transform text into beautiful markdown, effortlessly.

🌟 Features

  • Simplicity: Just a few lines of code and voila! An intuitive architecture made simple.
  • Modulability: Each module is highly independent, making it easy to use on its own.
  • Customizable: Extensible design allowing for easy customization.
  • Highly Tested: Robust unit tests ensure reliability.

🚀 Getting Started

Installation

pip install mdfy

Usage

Here's a quick start guide to get you up and running!

from mdfy import Mdfier, MdText, MdHeader

contents = [
  MdHeader("Hello, MDFY!"),
  MdText("[Life:bold] is [like:italic] a bicycle.")
]
Mdfy("markdown.md").write(contents)

# => markdown.md
#
# # Hello, MDFY!
# **Life** is *like* a bicycle.

Each mdfy element is string-convertible and can operate independently!

from mdfy import MdText, MdHeader, MdTable

print(MdHeader("Hello, MDFY!"))
print(MdText("[Life:bold] is [like:italic] a bicycle."))
print(MdTable({"head1": "content", "head2": "content"}, transpose=True))

# => result
#
# # Hello, MDFY!
# **Life** is *like* a bicycle.
# | Key | Value |
# | --- | --- |
# | head1 | content |
# | head2 | content |

MdText の記法

📖 Documentation

Check out our full documentation for detailed guides and API references.

✅ Testing

To run the tests:

python -m pytest

💡 Contributing

We welcome contributions!

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.


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

mdfy-0.0.3.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

mdfy-0.0.3-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page