Skip to main content

A python script that converts mysql create tables to markdown tables

Project description

MD Table Creator

Python 3.8.3

Takes in a mysql create table syntax as an input and output markdown table which you can then paste into confluence.

3.8.2 is used for the walrus operator

Contributing

Setup

Create a virtualenv, example with pyenv and pyenv-virtualenv plugin:

pyenv install 3.8.2
pyenv virtualenv 3.8.2 md-table-creator
pyenv local md-table-creator # Automatically activates md-table-creator whenever you are in this folder
pip install -r requirements.txt
pre-commit install

Running Tests

pytest .
pytest -vv . # verbose mode

Or if you want tests to re-run when any file is changed:

ptw .
ptw . -- -vv # verbose mode

Running formatter

black .

Building

Installed pyinstaller and ran:

pyinstaller --onefile --console md_table_creator.py

Then copied the executable from the dist folder to the runnable folder:

cp dist/md_table_creator runnable/md_table_creator

Uploading as a library to pypy

Followed these instructions:

https://dzone.com/articles/executable-package-pip-install

rm -rf build dist # clear as folders conflict with pyinstaler
python setup.py bdist_wheel # compile
python -m twine upload dist/* # upload to pypy

Versioning

Using semantic versioning

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

md_table_creator-0.0.1-py3-none-any.whl (10.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: md_table_creator-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for md_table_creator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f53165a244d577a95ccd40bbf20ba4476c0ef3303d37c281589d1da3ada1775d
MD5 e02b842b39a484fabba17ccabe00e629
BLAKE2b-256 e0637cddd01090983ec6dbd6066738375d0a0a49b4bb70ffc9dd2bdeb615d122

See more details on using hashes here.

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