Ops documentation

The Ops library (ops) is a Python framework for writing and testing Juju charms.

The library provides:

You can structure your charm however you like, but with the ops library, you get a framework that promotes consistency and readability by following best practices. It also helps you organise your code better by separating different aspects of the charm, such as managing the application’s state, handling integrations with other services, and making the charm easier to test.


In this documentation

Start here: a hands-on introduction to ops for new users

Tutorials

Step-by-step guides covering key operations and common tasks

How-to guides

Technical information - specifications, APIs, architecture

Reference

Discussion and clarification of key topics

Explanation

Project and community

Ops is a member of the Ubuntu family. It’s an open source project that warmly welcomes community projects, contributions, suggestions, fixes and constructive feedback.