Skip to main content

Type-safe python SDK for HackMD developer

Project description

HackMD Python SDK

License: MIT PRs Welcome Python Version

It is a Type-safe Python SDK that can let your HackMD development fastly.

Usage

pip install hackmd

# or

python setup.py install
from hackmd.client import Hackmd

hack = Hackmd(token="YOUR_TOKEN")
me = hack.get_me()

print(me.teams[0].name)  # Your team name
print(me.name)           # Your HackMD name

Methods

Authentication: X-HackMD-API-Version: 1.0.0

User

  • get_me()
    • return: Me()

User Note

  • get_notes()
    • return: List[Notes]
  • get_note(note_id=note_id)
    • return: Note()
  • create_note(body=NoteCreate())
    • return: Note()
  • update_note(note_id=note_id, body=NoteUpdate())
    • return: Note()
  • delete_note(note_id=note_id)
    • return: ''
  • get_read_notes_history()
    • return: List[Notes]

Development

git clone
cd hackmd-sdk-python/
pythom -m pytest tests/

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

hackmd-sdk-python-0.1.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

hackmd_sdk_python-0.1.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file hackmd-sdk-python-0.1.4.tar.gz.

File metadata

  • Download URL: hackmd-sdk-python-0.1.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for hackmd-sdk-python-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e4a6fd50407a2eb137496fceb6db14d1fe1980fb8f238236eb1261dfbb6ce075
MD5 72396dfe5677f9429fd26db001d2b4b4
BLAKE2b-256 6ad60989f80354cf6da42e2fad051c5ed84473fa274f54869a5c1db15ffecbb5

See more details on using hashes here.

Provenance

File details

Details for the file hackmd_sdk_python-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for hackmd_sdk_python-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 82338847a2abb8612c3c715f6744c138cbbe64ef0ba84bbf12eadb28be4adfbc
MD5 51d95236c746f491247e1286d43f6e56
BLAKE2b-256 063f39489b1c3b368797107629df9e05d76b06c238e31b4036c851b442d6ede6

See more details on using hashes here.

Provenance

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