Skip to main content

mdfy-esa

pypi python release & publish workflow test status codecov

mdfy plugin for esa

Pre-requirement

You need set esa.io API token and set it to environment veriable ESA_ACCESS_TOKEN.

export ESA_ACCESS_TOKEN=YOUR_ACCESS_TOKEN

Usage

The mdfy-esa feature supports uploading of local images and files. With the EsaMdfier, images or files designated with MdImage or MdLink are uploaded automatically. Simply pass the MdImage with the local image path, and voila - it’s done!"

from mdfy import MdImage, MdLink, MdText
from mdfy_esa import EsaMdfier

esa_team = "your esa team name"
post_fullname = "post name as you like"
contents = [
    MdText("This is a test article."),
    MdImage(src="examples/test_image.png"),
    MdLink(url="examples/dummy.pdf"),
]

mdfier = EsaMdfier(post_fullname=post_fullname, esa_team=esa_team)
created_post_info = mdfier.write(contents=contents)

# created_post_info = {'number': 4418, 'name': 'My Test Article', 'full_name': 'note/me/My Test Article', 'wip': True, 'body_md': 'This is a test article.\n', 'body_html': '<p data- ...}
# see esa.io api document for detail
# https://docs.esa.io/posts/102#POST%20/v1/teams/:team_name/posts

You can also update an existing post using its post number!

from mdfy import MdImage, MdLink, MdText
from mdfy_esa import EsaMdfier

esa_team = "your esa team name"
post_number = 4930
contents = [
    MdText("NEW! This post is updated!"),
    MdText("This is a test article."),
    MdImage(src="examples/test_image.png"),
    MdLink(url="examples/dummy.pdf"),
]

mdfier = EsaMdfier(post_number=post_number, esa_team=esa_team)
updated_post_info = mdfier.write(contents=contents)

Features

  • TODO

Credits

This package was created with Cookiecutter and the waynerv/cookiecutter-pypackage project template.

Metadata

Release files for mdfy-esa 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mdfy-esa 0.5.0
File Size Uploaded Provenance Actions
mdfy_esa-0.5.0.tar.gz 5.1 kB Without provenance Details for mdfy_esa-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mdfy-esa 0.5.0
File Interpreter ABI Platform Actions
mdfy_esa-0.5.0-py3-none-any.whl Python 3 none any Details for mdfy_esa-0.5.0-py3-none-any.whl

Total release size: 9.7 kB

Release files / mdfy_esa-0.5.0.tar.gz

Download URL mdfy_esa-0.5.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
323a360a37b6c737312a9ef370ed35c7bed4abccf2c692203aa377cf549e53d3
BLAKE2b-256 checksum
How to use checksums
b3e5a841769e40af7bde9851709017373793284c07d1bc9536ae5f056f5d98cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / mdfy_esa-0.5.0-py3-none-any.whl

Download URL mdfy_esa-0.5.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce1ca506874ac1a2e7407fe559304de4dce7098758de6b552fb0898e6c4a3ed9
BLAKE2b-256 checksum
How to use checksums
9a1a3297404770043971215c53ce0bfc1827d8b7d676ebcfc2daca3b7dfdc89d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Security for mdfy-esa 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page