Skip to content

Commit 8064f71

Browse files
authored
Merge pull request #34 from foarsitter/development
documentation: update urls & readme
2 parents c191030 + 0c537fd commit 8064f71

File tree

7 files changed

+41
-33
lines changed

7 files changed

+41
-33
lines changed

.cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"github_user": "foarsitter",
1010
"license": "MIT",
1111
"package_name": "checkedid",
12-
"project_name": "checkedid-python-client",
12+
"project_name": "checkedid",
1313
"version": "0.1.0"
1414
}

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Here is a list of important resources for contributors:
1212
- [Code of Conduct]
1313

1414
[mit license]: https://opensource.org/licenses/MIT
15-
[source code]: https://github.com/foarsitter/checkedid-python-client
16-
[documentation]: https://checkedid-python-client.readthedocs.io/
17-
[issue tracker]: https://github.com/foarsitter/checkedid-python-client/issues
15+
[source code]: https://github.com/foarsitter/checkedid-api-python-client
16+
[documentation]: https://checkedid.readthedocs.io/
17+
[issue tracker]: https://github.com/foarsitter/checkedid-api-python-client/issues
1818

1919
## How to report a bug
2020

@@ -54,7 +54,7 @@ or the command-line interface:
5454

5555
```console
5656
$ poetry run python
57-
$ poetry run checkedid-python-client
57+
$ poetry run checkedid
5858
```
5959

6060
[poetry]: https://python-poetry.org/
@@ -108,7 +108,7 @@ $ nox --session=pre-commit -- install
108108
It is recommended to open an issue before starting work on anything.
109109
This will allow a chance to talk it over with the owners and validate your approach.
110110

111-
[pull request]: https://github.com/foarsitter/checkedid-python-client/pulls
111+
[pull request]: https://github.com/foarsitter/checkedid-api-python-client/pulls
112112

113113
<!-- github-only -->
114114

README.md

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,53 @@
11
# CheckedID Python API client
22

3-
[![PyPI](https://img.shields.io/pypi/v/checkedid-python-client.svg)][pypi_]
4-
[![Status](https://img.shields.io/pypi/status/checkedid-python-client.svg)][status]
5-
[![Python Version](https://img.shields.io/pypi/pyversions/checkedid-python-client)][python version]
6-
[![License](https://img.shields.io/pypi/l/checkedid-python-client)][license]
3+
[![PyPI](https://img.shields.io/pypi/v/checkedid.svg)][pypi_]
4+
[![Status](https://img.shields.io/pypi/status/checkedid.svg)][status]
5+
[![Python Version](https://img.shields.io/pypi/pyversions/checkedid)][python version]
6+
[![License](https://img.shields.io/pypi/l/checkedid)][license]
77

8-
[![Read the documentation at https://checkedid-python-client.readthedocs.io/](https://img.shields.io/readthedocs/checkedid-python-client/latest.svg?label=Read%20the%20Docs)][read the docs]
9-
[![Tests](https://github.com/foarsitter/checkedid-python-client/workflows/Tests/badge.svg)][tests]
10-
[![Codecov](https://codecov.io/gh/foarsitter/checkedid-python-client/branch/main/graph/badge.svg)][codecov]
8+
[![Read the documentation at https://checkedid.readthedocs.io/](https://img.shields.io/readthedocs/checkedid-api-python-client/latest.svg?label=Read%20the%20Docs)][read the docs]
9+
[![Tests](https://github.com/foarsitter/checkedid-api-python-client/workflows/Tests/badge.svg)][tests]
10+
[![Codecov](https://codecov.io/gh/foarsitter/checkedid-api-python-client/branch/main/graph/badge.svg)][codecov]
1111

1212
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
1313
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
1414

15-
[pypi_]: https://pypi.org/project/checkedid-python-client/
16-
[status]: https://pypi.org/project/checkedid-python-client/
17-
[python version]: https://pypi.org/project/checkedid-python-client
18-
[read the docs]: https://checkedid-python-client.readthedocs.io/
19-
[tests]: https://github.com/foarsitter/checkedid-python-client/actions?workflow=Tests
20-
[codecov]: https://app.codecov.io/gh/foarsitter/checkedid-python-client
15+
[pypi_]: https://pypi.org/project/checkedid/
16+
[status]: https://pypi.org/project/checkedid/
17+
[python version]: https://pypi.org/project/checkedid
18+
[read the docs]: https://checkedid.readthedocs.io/
19+
[tests]: https://github.com/foarsitter/checkedid-api-python-client/actions?workflow=Tests
20+
[codecov]: https://app.codecov.io/gh/foarsitter/checkedid-api-python-client
2121
[pre-commit]: https://github.com/pre-commit/pre-commit
2222
[black]: https://github.com/psf/black
2323

2424
## Features
2525

26-
- TODO
26+
- Typed API client for api.checkedid.eu
2727

2828
## Requirements
2929

30-
- TODO
30+
- Build with Pydantic and httpx, does currently not support async.
3131

3232
## Installation
3333

3434
You can install _CheckedID Python API client_ via [pip] from [PyPI]:
3535

3636
```console
37-
$ pip install checkedid-python-client
37+
$ pip install checkedid
3838
```
3939

4040
## Usage
4141

42-
Please see the [Command-line Reference] for details.
42+
```py
43+
from checkedid import errors, models, Client
44+
45+
try:
46+
client = Client('1001')
47+
dossier: models.ReportResponse = client.dossier('123456789')
48+
except errors.CheckedIDNotFoundError as e:
49+
print("Dossier does not exists")
50+
```
4351

4452
## Contributing
4553

@@ -63,11 +71,10 @@ This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter]
6371
[@cjolowicz]: https://github.com/cjolowicz
6472
[pypi]: https://pypi.org/
6573
[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
66-
[file an issue]: https://github.com/foarsitter/checkedid-python-client/issues
74+
[file an issue]: https://github.com/foarsitter/checkedid-api-python-client/issues
6775
[pip]: https://pip.pypa.io/
6876

6977
<!-- github-only -->
7078

71-
[license]: https://github.com/foarsitter/checkedid-python-client/blob/main/LICENSE
72-
[contributor guide]: https://github.com/foarsitter/checkedid-python-client/blob/main/CONTRIBUTING.md
73-
[command-line reference]: https://checkedid-python-client.readthedocs.io/en/latest/usage.html
79+
[license]: https://github.com/foarsitter/checkedid-api-python-client/blob/main/LICENSE
80+
[contributor guide]: https://github.com/foarsitter/checkedid-api-python-client/blob/main/CONTRIBUTING.md

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ reference
1919
contributing
2020
Code of Conduct <codeofconduct>
2121
License <license>
22-
Changelog <https://github.com/foarsitter/checkedid-python-client/releases>
22+
Changelog <https://github.com/foarsitter/checkedid-api-python-client/releases>
2323
```

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
```{eval-rst}
44
.. click:: checkedid.__main__:main
5-
:prog: checkedid-python-client
5+
:prog: checkedid
66
:nested: full
77
```

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description = "CheckedID Python API client"
55
authors = ["Jelmer Draaijer <[email protected]>"]
66
license = "MIT"
77
readme = "README.md"
8-
homepage = "https://github.com/foarsitter/checkedid-python-client"
9-
repository = "https://github.com/foarsitter/checkedid-python-client"
10-
documentation = "https://checkedid-python-client.readthedocs.io"
8+
homepage = "https://github.com/foarsitter/checkedid-api-python-client"
9+
repository = "https://github.com/foarsitter/checkedid-api-python-client"
10+
documentation = "https://checkedid.readthedocs.io"
1111
packages = [
1212
{ include = "checkedid", from = "src" },
1313
]
@@ -16,7 +16,7 @@ classifiers = [
1616
]
1717

1818
[tool.poetry.urls]
19-
Changelog = "https://github.com/foarsitter/checkedid-python-client/releases"
19+
Changelog = "https://github.com/foarsitter/checkedid-api-python-client/releases"
2020

2121
[tool.poetry.dependencies]
2222
python = "^3.7"

src/checkedid/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
"""CheckedID Python API client."""
2+
from .client import Client # noqa: F401

0 commit comments

Comments
 (0)