Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Plone Logo

plone-client

PyPI PyPI - Python Version PyPI - License CI

A Python library and command line client for Plone sites, built on plone.restapi.

What it does

  • As a library, plone-client gives your code a client with one manager per plone.restapi service. Use it to sync content from an external source, to migrate content, or to automate site maintenance.
  • As a command line client, plone-client manages any number of Plone sites, each one a named profile whose password stays in your operating system's keyring. It prints JSON and uses stable exit codes, so shell scripts and coding agents can use it as well as people.
  • As an MCP server, plone-client mcp gives chat assistants the everyday reads and operations that take several requests, such as creating a page from Markdown or a news item with its images.

It works with Plone 6.0, 6.1, and 6.2, and needs Python 3.11 or later. See the compatibility grid for the plone.restapi versions.

Install

uv add plone-client                    # the library
uv tool install "plone-client[cli]"    # the command line
uv tool install "plone-client[mcp,markdown]"  # the MCP server, with Markdown pages

Use the library

from plone_client import PloneClient
from plone_client import blocks

with PloneClient("https://example.org", username="editor", password="secret") as client:
    page = client.content.create(
        "/news",
        "Document",
        title="Hello, Plone",
        **blocks.build(blocks.title(), blocks.description(), blocks.text("It works.")),
    )
    client.workflow.transition(page["@id"], "publish")

    for item in client.search.iter("/news", portal_type="Document", review_state="published"):
        print(item["@id"], item["title"])

Use the command line

plone-client profile add prod --url https://example.org --username editor --read-only
plone-client -p prod ls /news -f @id,title,review_state
plone-client -p prod search -t "News Item" --state published --limit 10

Documentation

The documentation is at https://plone.github.io/plone-client.

  • Tutorials: your first script and your first command line session.
  • How-to guides: sync content, manage profiles, upload files, use it from coding agents.
  • Reference: compatibility, the client, managers, commands, configuration, and errors.
  • Explanation: the design, secrets, and why a command line suits agents.

Contribute

License

The project is licensed under the GPLv2. See LICENSE.GPL.

Metadata

Release files for plone-client 1.0.0a3

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

Source distribution (sdist)

Source distribution for plone-client 1.0.0a3
File Size Uploaded Provenance Actions
plone_client-1.0.0a3.tar.gz 369.9 kB Without provenance Details for plone_client-1.0.0a3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plone-client 1.0.0a3
File Interpreter ABI Platform Actions
plone_client-1.0.0a3-py3-none-any.whl Python 3 none any Details for plone_client-1.0.0a3-py3-none-any.whl

Total release size: 493.2 kB

Release files / plone_client-1.0.0a3.tar.gz

Download URL plone_client-1.0.0a3.tar.gz
Size 369.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d8f2f75855c7a6f48ccd3ad138dd9c007ac750edb940b86da7392ae8a26e284c
BLAKE2b-256 checksum
How to use checksums
56a074c1ca0c4892998499fe8bf44b1a1d9dcc7d7109de7a32ca8274456f01c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / plone_client-1.0.0a3-py3-none-any.whl

Download URL plone_client-1.0.0a3-py3-none-any.whl
Size 123.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5ff424cd71c1ba383e7ebebf9d1a7e7bb212344ad7e9326dd811467da3120cf
BLAKE2b-256 checksum
How to use checksums
0c68888729f2042d6bf768e7fc13d709a1377ed388fe0f4e62b2b935a94246da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for plone-client 1.0.0a3

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.

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