Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

✉️ ⚒️ A JMAP client library for Python.https://jmap.io

License

NotificationsYou must be signed in to change notification settings

smkent/jmapc

Repository files navigation

jmapc: AJMAP client library for Python

PyPIPyPI - Python VersionBuildcodecovGitHub stars

jmapc

Currently implemented:

  • Basic models
  • Request methods:
    • Core/echo
    • Email/changes
    • Email/copy
    • Email/get
    • Email/query
    • Email/queryChanges
    • Email/set
    • EmailSubmission/* (get,changes,query,queryChanges,set)
    • Identity/* (get,changes,set)
    • Mailbox/* (get,changes,query,queryChanges,set)
    • SearchSnippet/* (get)
    • Thread/* (get,changes)
    • Arbitrary methods via theCustomMethod class
  • Fastmail-specific methods:
  • Combined requests with support for result references
  • Basic JMAP method response error handling
  • EventSource event handling
  • Unit tests for basic functionality and methods

Installation

jmapc is available on PyPI:

pip install jmapc

Examples

Any of the included examples can be invoked withpoetry run:

JMAP_HOST=jmap.example.com \JMAP_API_TOKEN=ness__pk_fire \poetry run examples/identity_get.py

If successful,examples/identity_get.py should output something like:

Identity 12345 is for Ness at ness@onett.example.comIdentity 67890 is for Ness at ness-alternate@onett.example.com

Development

Poetry installation

Viapipx:

pip install pipxpipx install poetrypipx inject poetry poetry-pre-commit-plugin

Viapip:

pip install poetrypoetry self add poetry-pre-commit-plugin

Development tasks

  • Setup:poetry install
  • Run static checks:poetry run poe lint orpoetry run pre-commit run --all-files
  • Run static checks and tests:poetry run poe test

Created fromsmkent/cookie-python usingcookiecutter


[8]ページ先頭

©2009-2025 Movatter.jp