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.0a4

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.0a4
File Size Uploaded Provenance Actions
plone_client-1.0.0a4.tar.gz 503.1 kB Without provenance Details for plone_client-1.0.0a4.tar.gz

Built distribution (wheel)

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

Total release size: 629.6 kB

Release files / plone_client-1.0.0a4.tar.gz

Download URL plone_client-1.0.0a4.tar.gz
Size 503.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7c529821130e5b9250ac2411f3d37a2087795f30941ff0b305e4782bf39a08bf
BLAKE2b-256 checksum
How to use checksums
5f43b092402712daf9f054204e2041a8c5ed4f4a3442aa9fc4f83da546d0f4ff
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.0a4-py3-none-any.whl

Download URL plone_client-1.0.0a4-py3-none-any.whl
Size 126.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b860701acfd709860136049fd33478c8ee9fbed91f55c72205356df8d5858ab1
BLAKE2b-256 checksum
How to use checksums
3dde3ad83a1fdff8ba50b55e6b2a01cb5bc5f81a139a061e20405f777b92bb64
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.0a4

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