From 6634fa6326aa073560e6de2955304e1c85de67bd Mon Sep 17 00:00:00 2001 From: Chris Carlon Date: Wed, 28 Aug 2024 14:35:15 +0100 Subject: [PATCH] Updates 2024-08-28 - ... --- README.md | 11 +++++++++++ src/herding_cats.py | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 28c4cda..65fa071 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,14 @@ 2. [London Datastore](https://data.london.gov.uk) 3. [Data Mill North](https://datamillnorth.org) 4. [Gov Open Data](https://www.data.gov.uk) + +## Basic usage examples: + +```python +# Example usage +if __name__ == "__main__": + with CatSession("data.london.gov.uk") as session: + explore = CatExplorer(session) + v = explore.package_search_json(search_query="census") + pprint(v) +``` diff --git a/src/herding_cats.py b/src/herding_cats.py index 068e987..3c5838a 100644 --- a/src/herding_cats.py +++ b/src/herding_cats.py @@ -42,7 +42,6 @@ def __exit__(self, exc_type, exc_val, exc_tb): """Allows use with context manager with""" self.close_session() - class CatExplorer: def __init__(self, cat_session: CatSession): self.cat_session = cat_session