Gitlab Community Edition Instance

Commit 60408e18 authored by mhellka's avatar mhellka
Browse files

Fix syntax highlighting in readme

parent 7763d47c
......@@ -9,7 +9,7 @@ There is already a library called [pycdstar](
The `pycdstar3.CDStar` class closely reassembles the actual CDSTAR v3 REST API, one method per API endpoint. It provides basic connection pooling, transaction management, error handling and json parsing on top of the `requests` library, but tries to stay out of your way otherwise. Use this if you already know the CDSTAR API and need maximum control.
from pycdstar3 import CDStar
cdstar = CDStar("", auth=("USER", "PASS"))
......@@ -26,7 +26,7 @@ with cdstar.begin(autocommit=True): # Wrap everything in a transaction (optiona
For a more fluent and high-level approach, wrap your `CDStar` instance in a `CDStarVault`. This hides the HTTP layer behind an object-oriented API and offers convenient wrappers and methods for the most common operations.
from pycdstar3 import CDStar, CDStarVault
cdstar = CDStar("", auth=("USER", "PASS"))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment