Skip to main content

J-STAGE API wrapper for Python - Python 3.12 Compatible

Project description

pyjstage-py312

Python 3.12 License: MIT PyPI version

Overview

J-STAGE WebAPI Wrapper for Python 3.

  • J-STAGE is an electronic journal platform for science and technology information in Japan, developed and managed by the Japan Science and Technology Agency (JST).
  • This package is a Python 3.12 compatible fork of pyjstage.

Acknowledgments

This project is modified based on matsurih/pyjstage (v0.0.2).

Special thanks to the original author @matsurih for creating this useful J-STAGE API wrapper.

What's Changed

Package Original Forked
lxml 4.4.2 >=5.0.0
requests 2.22.0 >=2.31.0
urllib3 1.25.7 >=2.0.0
certifi 2019.11.28 >=2023.0.0
  • Fixed absolute imports to relative imports
  • Fixed private method name mangling (__finish_setup_finish_setup)
  • Added __init__.py export for cleaner imports

Prerequisites

  • Python >= 3.12

Installation

$ pip install pyjstage-py312

Usage

Basic Usage

from pyjstage.pyjstage import Pyjstage

jstage = Pyjstage()

# Search by ISSN
ret_search = jstage.search(issn='2186-6619', count=3)

# List articles in a journal
ret_list = jstage.list(issn='2186-6619')

Accessing Results

for entry in ret_search.entries:
    print(f"Title: {entry.title}")
    print(f"Author: {entry.author.get('ja', '')}")
    print(f"Journal: {entry.material_title.get('ja', '')}")
    print(f"Year: {entry.pubyear}")
    print(f"DOI: {entry.doi}")
    print(f"Link: {entry.link}")

Search Parameters

jstage.search(
    pubyearfrom=2020,      # Search from year
    pubyearto=2024,        # Search to year
    material='journal',    # Journal name contains
    article='title',       # Article title contains
    author='name',         # Author name contains
    keyword='AI',          # Keyword contains
    issn='2186-6619',      # ISSN
    count=10               # Number of results (max 1000)
)

Important Notes

What J-STAGE API Provides

  • Literature search - Search by ISSN, keyword, author, year, etc.
  • Metadata - Title, author, journal, year, DOI, page numbers
  • Article links - Links to J-STAGE article pages

What J-STAGE API Does NOT Provide

  • Full-text PDF download - The API does not provide direct PDF downloads
  • Full-text content - The API returns metadata, not full article text

To access full-text content, use the link or doi fields to visit the publisher's website.

Source Code

https://github.com/lanshi17/pyjstage

License

MIT License - see LICENSE file.

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

pyjstage_py312-0.1.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

pyjstage_py312-0.1.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file pyjstage_py312-0.1.1.tar.gz.

File metadata

  • Download URL: pyjstage_py312-0.1.1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pyjstage_py312-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2f0e7003b49de969a109a3aa7f29dea8b47689482d9d562e92c670a10d4e278d
MD5 6c8bf70adf4cc545b67964188499c44f
BLAKE2b-256 4de087f7acb795623bb7bce109eeeec0b4834e8502ec2a4e7cc48625d425b4e5

See more details on using hashes here.

File details

Details for the file pyjstage_py312-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyjstage_py312-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pyjstage_py312-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af968ac1944b0ccfc706bfc1bb00794d2a25275451cf6117dbeb2485f2eb2b3f
MD5 51c1d835b7e15f4031e971c5b1fc0250
BLAKE2b-256 3e93eef5f312a81ee340723875b63ef98003f915261e51af144b61e928a57438

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