Skip to main content

Your Dynalist Manager.

Project description

Dyma: Your Dynalist Manager

Static Badge Static Badge PyPI - Version

Note: This project is in very early stage. Major changes could happen and cause conflict with current usage.

Features

Dynalist API manager, written in Python.

Back up all your files and folders in just one line.

Usage

0. setup

You can install this package from PyPI

pip install dyma

1. start

from dyma import DyManager

dm = DyManager(token="") # insert your token here

# or
dm = DyManager()
dm.token = "" # insert your token here

2. file-level usage

# fetch all files
files = dm.file.fetch_all()

# make changes: move, edit, create
results = dm.file.edit(type='document', id="your document id", title="new title")

results = dm.file.move(type='folder', id="your foler id", parent_id="parent id", index=3)

results = dm.file.create(type='document', parent_id='parent id', index=3, title='new title')

# the above equals to

results = dm.file(action='edit', ...) # action= edit | move | create, other paramters are the same

3. document-level usage

# get content of a document
results = dm.doc.get(id="your file id")

# check if documents has been updated
result = dm.doc.check(ids="your file ids") # or use list of file ids

# make change to che content of a document
results = dm.doc.insert(id='your doc id', parent_id = 'parent node id (default: root)', content='hello world')

result = dm.doc.edit(id='your doc id', node_id='node id', content='hello world')

result = dm.doc.move(id='your doc id', node_id='node id', parent_id='parent node id', index=3)

result = dm.doc.delete(id='your doc id', node_id='node id')

results = dm.doc(action='insert',...) # action= insert | edit | move | delete, other paramters are the same

4. account-level usage

# sent to inbox
results = dm.send_to_inbox(index=-1, content='hello world', note="", checked=True, checkbox=True)

# upload file (Pro only)
results = dm.upload(filename='', content_type='', data='')

# get preference
result = dm.get_preference(key='')

# set preference
result = dm.set_preference(key='', value='')

5. advanced features

# one-line backup
dm.backup()

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

dyma-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dyma-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file dyma-0.1.1.tar.gz.

File metadata

  • Download URL: dyma-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for dyma-0.1.1.tar.gz
Algorithm Hash digest
SHA256 389d02e3afff11926f559cd82e252274d2802367f2300d773064c0cef351a260
MD5 8147a5f24d9d41e27ccd6c4b75439d3d
BLAKE2b-256 0a2c17e3f667e6b59370d179ac345e81ee148b7025207cdb4174f98c7674aa53

See more details on using hashes here.

File details

Details for the file dyma-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dyma-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for dyma-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5bd64f5b4808f7cbb3348756b4394b47bc51f87da93249cddc1f6c11f046c59
MD5 f2f64fdfe5cdb7189e5f92c1ccce9134
BLAKE2b-256 c150c681003aa64001a1af603f46c848f22177cca31c0fd23470ec598aa0c1c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page