Skip to main content

OOPS disk serialisation and repository management.

Project description

Copyright (c) 2011, Canonical Ltd

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3 only.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. GNU Lesser General Public License version 3 (see the file LICENSE).

This is a component of the python-oops project: https://launchpad.net/python-oops. An OOPS report is a report about something going wrong in a piece of software… thus, an ‘oops’ :)

This package provides disk storage, management, and a serialisation format for OOPSes stored in the repository. Programs or services that are generating OOPS reports need this package or other similar ones, if they want to persist the reports.

Dependencies

Testing Dependencies

Usage

oops_datedir_repo is an extension package for the oops package.

The DateDirRepo class provides an OOPS publisher (DateDirRepo.publish) which will write OOPSes into the repository.

Retrieving OOPSes can be done by using the low level serializer_rfc822 functions : an OOPS report can be written to a disk file via the serializer_rfc822.write() function, and read via the matching read() function.

Typical usage:

>>> config = oops.Config()
>>> with fixtures.TempDir() as tempdir:
...    repo = oops_datedir_repo.DateDirRepo('/tmp/demo')
...    config.publishers.append(repo.publish)
...    ids = config.publish({'oops': '!!!'})

For more information see the oops package documentation or the api docs.

Installation

oops_datedir_repo can be installed into an existing Python environment in the usual way using pip, or it can be installed as a standalone package in order to use its prune tool. To install it as a standalone package, run make to create a suitable virtual environment; you can then run bin/prune to delete unreferenced OOPSes.

Development

Upstream development takes place at https://launchpad.net/python-oops-datedir-repo.

To run this project’s tests, use tox <https://tox.readthedocs.io/en/latest/>.

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

oops_datedir_repo-0.1.0.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

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

oops_datedir_repo-0.1.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file oops_datedir_repo-0.1.0.tar.gz.

File metadata

  • Download URL: oops_datedir_repo-0.1.0.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for oops_datedir_repo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b1a19ee8fe3eef525f5ee0dfb50fb287fa6b44d688dbbc177dd9569b53714260
MD5 cf0dde667528f275c0b68c2390c32cb5
BLAKE2b-256 a301a89d0859ec5717718b752075637baf768e36408d1a5c96ec72fc4f3d01d3

See more details on using hashes here.

File details

Details for the file oops_datedir_repo-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for oops_datedir_repo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9da410019510252b6d9a4d42d928a158381db4bf8f676f1a15cc993d0491e89
MD5 04cf162f86ac933ec03beb22a3bc60c8
BLAKE2b-256 6d4ff565243586ce00a7366023d087b89dfab28e448bf206ff98510c9b1b79b3

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