kendama
国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 0.1.4
- Generator version: 7.22.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.10+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/nisyuu/kendama-python.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/nisyuu/kendama-python.git)
Then import the package:
import kendama
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import kendama
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import kendama
from kendama.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://kensyo.invoice-kohyo.nta.go.jp
# See configuration.py for a list of all supported configuration parameters.
configuration = kendama.Configuration(
host = "https://kensyo.invoice-kohyo.nta.go.jp"
)
# Enter a context with an instance of the API client
with kendama.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kendama.V1Api(api_client)
id = 'id_example' # str |
var_from = 'Tue Oct 01 09:00:00 JST 2024' # date |
to = 'Tue Oct 01 09:00:00 JST 2024' # date |
type = 21 # str | (default to 21)
division = 1 # str | (optional) (default to 1)
divide = '1' # str | (optional) (default to '1')
try:
# 取得期間を指定して情報を取得
api_response = api_instance.get_announcement_by_diff(id, var_from, to, type, division=division, divide=divide)
print("The response of V1Api->get_announcement_by_diff:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling V1Api->get_announcement_by_diff: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://kensyo.invoice-kohyo.nta.go.jp
| Class | Method | HTTP request | Description |
|---|---|---|---|
| V1Api | get_announcement_by_diff | GET /1/diff | 取得期間を指定して情報を取得 |
| V1Api | get_announcement_by_number | GET /1/num | 登録番号を指定して情報を取得 |
| V1Api | get_announcement_by_valid | GET /1/valid | 登録番号と日付を指定して情報を取得 |
Documentation For Models
Documentation For Authorization
Endpoints do not require authorization.
Author
Metadata
Release files for kendama 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kendama-0.1.4.tar.gz | 45.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kendama-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 100.7 kB
Release files / kendama-0.1.4.tar.gz
| Download URL | kendama-0.1.4.tar.gz |
|---|---|
| Size | 45.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4114e891eb09d16fc2afa58a7b44d0671c215790151c8c88c6dd5d9b864574be
|
|
BLAKE2b-256 checksum How to use checksums |
bd6d5e9339d40a7f35b20e2fb0a6e0907060a38a5a0c782326e025ddab35eb90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.5 Darwin/25.5.0
|
Release files / kendama-0.1.4-py3-none-any.whl
| Download URL | kendama-0.1.4-py3-none-any.whl |
|---|---|
| Size | 54.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abdfe388ee8d23a08674b10230f862fcb2ccd74ee1f45666745cc7138acf8f00
|
|
BLAKE2b-256 checksum How to use checksums |
047b93fd804b4393fc43ee40bf74e1b15e92393d523f861f29b0be2b00d0e94e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.5 Darwin/25.5.0
|