国税庁API
Project description
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.3
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.7+
Installation & Usage
pip install
Requests is available on PyPI:
pip install kendama
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/uichi/kendama-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/uichi/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 time
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kendama-0.1.3.tar.gz
.
File metadata
- Download URL: kendama-0.1.3.tar.gz
- Upload date:
- Size: 43.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29e1d0074b6293a97bff0feb6cf836a5305b57a06763846d3f1a2df11318aba3 |
|
MD5 | f2dc8e65d7b6054db6f378e71fda377c |
|
BLAKE2b-256 | 6455d9b600054ea5f051a10f3e4f3e195cf5734b84b8ee6b197df10b53fb08b6 |
File details
Details for the file kendama-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: kendama-0.1.3-py3-none-any.whl
- Upload date:
- Size: 53.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de1f9300167efe9a72f34f2b2f98c69e0539495480af185a2a45bdc4fe90a07a |
|
MD5 | 357dbb27cfd75fa3859a6299ac2f8c55 |
|
BLAKE2b-256 | 9d6c1ad68cb812c92f457bfeadd68a4a74e99a4532ea0d05e0b10bc382416148 |