Skip to main content

jpcorpreg is a Python library that downloads corporate registry which is published in the Corporate Number Publication Site as a data frame.

Project description

jpcorpreg

Test PyPI - Version

jpcorpreg is a Python library that downloads corporate registry which is published in the Corporate Number Publication Site as a data frame.

Installation


jpcorpreg is available on pip installation.

$ python -m pip install jpcorpreg

GitHub Install

Installing the latest version from GitHub:

$ git clone https://github.com/new-village/jpcorpreg
$ cd jpcorpreg
$ pip install -e .

Usage

This section demonstrates how to use this library to load and process data from the National Tax Agency's Corporate Number Publication Site.

Direct Data Loading

To download data for a specific prefecture, use the load function. By passing the prefecture name as an argument, you can obtain a DataFrame containing data for that prefecture.

>>> import jpcorpreg
>>> df = jpcorpreg.load("Shimane")

To execute the load function without argument, data for all prefectures across Japan will be downloaded.

>>> import jpcorpreg
>>> df = jpcorpreg.load()

Parquet Output

If you prefer to save the downloaded data as a Parquet file instead of returning a DataFrame, pass format="parquet". The function returns the path to the generated .parquet file.

>>> import jpcorpreg
>>> parquet_path = jpcorpreg.load("Shimane", format="parquet")

You can then read the Parquet file with pandas:

>>> import pandas as pd
>>> df = pd.read_parquet(parquet_path)

CSV Data Loading

If you already have a downloaded CSV file, use the read_csv function. By passing the file path as an argument, you can obtain a DataFrame with headers from the CSV data.

>>> import jpcorpreg
>>> df = jpcorpreg.read_csv("path/to/data.csv")

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

jpcorpreg-1.8.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jpcorpreg-1.8.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file jpcorpreg-1.8.0.tar.gz.

File metadata

  • Download URL: jpcorpreg-1.8.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for jpcorpreg-1.8.0.tar.gz
Algorithm Hash digest
SHA256 73bdb5f911ec4eb0ad75d82009fc1d9d1d73ca9c6a786dfce9b3a3881e78d532
MD5 7c504dba05f320757864b5f93e2e1d82
BLAKE2b-256 f719e11d2d93a789c92252610ea59661d630a9ff821c3c7ce7cf7e09124b44e6

See more details on using hashes here.

File details

Details for the file jpcorpreg-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: jpcorpreg-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for jpcorpreg-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb83378fd49605606294b5ce96b7ee4505198f6ed5fc4ceae0aa2ada3f5b7481
MD5 810b55f31335ee8b97531e1d83105fb5
BLAKE2b-256 414ba573ce3f3e9cb4175635a4181fa7856ab1a848853d1c9c65a21e07e73a29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page