Skip to main content

logpyseq

Pythonic wrapper for LogSeq APIs

This package uses code from gist https://gist.github.com/ksqsf/c3f254545cd8f5e597fc67c1014da9ac

Code available at https://github.com/jmbenedetto/logpyseq.git.

Installation

To install the package, use the following command:

pip install logpyseq

Usage

  • The entire LogSeq API is available as methods of the logseq object.
  • Some complementary functions are also available as part of the logpyseq module: upsert_page_properties.

Connecting to LogSeq graph

from logpyseq import logseq, upsert_page_properties
logseq_token = "your_logseq_token"
mygraph = logseq(logseq_token, host="127.0.0.1", port="12315")

Create a new page

mygraph.Editor.createPage("APITest")

Append blocks to the page

mygraph.Editor.appendBlockInPage("APITest", "Block 1")
mygraph.Editor.appendBlockInPage("APITest", "Block 2")

Show a message

mygraph.App.showMsg("Hello!")

Upsert page properties

page_uuid = "your_page_uuid"
target_properties = {
    "property_name": "property_value",
    "property_name2": "property_value2"
    }
upsert_page_properties(mygraph, page_uuid, target_properties)

Delete a page

mygraph.Editor.deletePage("APITest")

Metadata

Release files for logpyseq 0.1.1

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

Source distribution (sdist)

Source distribution for logpyseq 0.1.1
File Size Uploaded Provenance Actions
logpyseq-0.1.1.tar.gz 5.0 kB Without provenance Details for logpyseq-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for logpyseq 0.1.1
File Interpreter ABI Platform Actions
logpyseq-0.1.1-py3-none-any.whl Python 3 none any Details for logpyseq-0.1.1-py3-none-any.whl

Total release size: 10.4 kB

Release files / logpyseq-0.1.1.tar.gz

Download URL logpyseq-0.1.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9eb239287378f6a30b6a4f6edbbc13b6fab1459b5981d44e99a29385f76e4602
BLAKE2b-256 checksum
How to use checksums
8661d03cb92a081c39b1614f53b8d212187850b121147804064c61af172588d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.2

Release files / logpyseq-0.1.1-py3-none-any.whl

Download URL logpyseq-0.1.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3308f2397ceb0aa832c5fe5c921269ee0bc945e473f75ad3a2c5fc3419e928c3
BLAKE2b-256 checksum
How to use checksums
7afd011e9697343d90b159a3894ef977f1ab3e6edd378f01eec5ef9de099dead
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.2

Security for logpyseq 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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