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.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

hackmd_sdk_python-0.1.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hackmd-sdk-python-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 090a9a076b99ec3ff937908fc2db91dd722463be6d02696d2994786eb3afe051
MD5 3b75b4d388439b4341ecd1de0ecc25b5
BLAKE2b-256 2fc2f9ad636534d5f8492e0796a4cb4b7bb18377eacab5c879e8e3df22551126

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for hackmd_sdk_python-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a1cbfd9078ec2b2d51e49feb988b93419a017b140df8a5cc0d22d48fef579e7b
MD5 f4e1f96a0bff9c67e5af425afe769b36
BLAKE2b-256 daa9823f107f9bda53d6e272a62f42a211374c4f47a4e7cf1615873b33389248

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