Skip to content

Commit

Permalink
Updated pyauditor docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-k committed Feb 9, 2023
1 parent 87b6df8 commit e0b46f0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyauditor/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'pyauditor'
copyright = '2022, Stefan Kroboth'
copyright = '2023, Stefan Kroboth'
author = 'Stefan Kroboth'

# -- General configuration ---------------------------------------------------
Expand Down
11 changes: 10 additions & 1 deletion pyauditor/docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Creating a Record

.. code-block:: python
from pyauditor import Record, Component, Score
from pyauditor import Record, Meta, Component, Score
# Define meta information
record_id = "record-1" # Must be unique for all records in Auditor!
Expand All @@ -52,6 +52,15 @@ Creating a Record
# Attach the component to the record
record = record.with_component(component)
# Create meta
meta = Meta()
# Add information to meta
meta = meta.insert("site_id", ["site1"])
# Attach meta to record
record = record.with_meta(meta)
# Resource stopped being available
stop = datetime.datetime(2021, 12, 6, 18, 0, 0, 79043) # in UTC
record = record.with_stop_time(stop)
Expand Down
2 changes: 1 addition & 1 deletion pyauditor/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ It provides functionality to create records and send records to and receive reco
Installation
============

pyauditor requires a Python version >= 3.7.
pyauditor requires a Python version >= 3.6.

.. code-block::
Expand Down

0 comments on commit e0b46f0

Please sign in to comment.