Skip to content

Commit d5ce3b4

Browse files
authored
Merge pull request #14 from LexMachinaInc/feature/v2
Feature: [#13] Python client v2
2 parents 3d32ff3 + 2dbfcc2 commit d5ce3b4

File tree

478 files changed

+72129
-1079
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

478 files changed

+72129
-1079
lines changed

.vscode/settings.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ Synchronized LexMachinaClient to match current live API.
1212
- Added `list_originating_venues_federal`
1313
- Added `list_appellate_decisions_federal`
1414
- Added `list_supreme_court_decisions_federal`
15+
16+
17+
2025-04-22 v2.0.0.20250318
18+
19+
Used the Python generator from [openapi-generator](https://openapi-generator.tech/docs/generators/python/) to generate a Python client based on the current version of the Lex Machina API (v20250318).
20+
21+
- The updated client has methods for recently added endpoints such as those accessing alerts results and searching for cases by case number.
22+
- The previous version of the client is accessible under a `v1` subpackage. We will not be providing continuing support for the `v1` subpackage and it will be removed in 2026.

README.md

Lines changed: 0 additions & 84 deletions
This file was deleted.

config/autogeneration.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Generating a Python client
2+
3+
These steps are provided as an example of how to generate a client in the event you would like to generate your own.
4+
5+
We used the python generator from [openapi-generator](https://openapi-generator.tech/docs/generators/python/). They provide generators for various languages.
6+
7+
1. Install [openapi-generator](https://openapi-generator.tech/docs/installation)
8+
2. To get help with options for the python generator: ``openapi-generator-cli config-help -g python``
9+
3. To generate a python client specifying a directory of custom templates: ``openapi-generator-cli generate -g python -c config/open_api_autogenerator_config.yml -i config/openapi.json -o src -t custom_templates``

config/config.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# TODO Used for v1 only - can delete after get rid of v1
12
[URLS]
23
token_url = /oauth2/token
34
base_url = https://api.lexmachina.com
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
basePath: "https://api.lexmachina.com"
2+
disallowAdditionalPropertiesIfNotPresent: False
3+
generateSourceCodeOnly: True
4+
packageName: lexmachina
5+
packageVersion: "2.0.0.20250318"
6+
packageUrl: "https://pypi.org/project/lexmachina-client/"
7+
projectName: python-lexmachina-api-client

0 commit comments

Comments
 (0)