Skip to main content

HPM is a command-line tool that adds High Energy Physics (HEP) papers to a Notion database.

Project description

HEP Paper Manager (HPM)

HPM is a command-line tool that adds High Energy Physics (HEP) papers to a Notion database. It leverages the Inspire engine to source these academic papers, creating a streamlined process for HEP researchers.

Features

  • Fetch HEP papers via the Inspire engine.
  • Directly add fetched papers to your Notion database.
  • Interactive CLI for easy setup and usage.

Installation

pip install hep-paper-manager

Usage

Before using hpm, check this link to create an integration with the Notion API to let hpm work with your database.

  1. Use hpm init to set up HPM:
    hpm init
    
    During this process, you will be asked to input your Notion API key and choose a paper template. You'll also be shown related directories where you can modify the default paper template or introduce your own templates.
  2. Use hpm add to fetch and add a paper to your Notion database:
    hpm add <template> <parameter>
    
    <parameter> is a comma-separated string like "param1,param2" to pass to the get method of the chosen engine. For the default Inspire engine, it refers to the arxiv ID of the paper.

Example: Add "[1511.05190] Jet image -- deep learning edition" to a Notion database

  1. First create a database in Notion:

    Arxiv ID: Text
    Citations: Number
    Title: Title
    Journal: Select
    Authors: Multi-select
    Abstract: Text
    URL: URL
    Bibtex: Text
    Source: Select
    

    database Tip: Consider adding Authors as a Relation property. This allows you to concentrate on specific authors or professors of interest. Just add the integration to the related professors' database. hpm will locate authors based on the page Title property in the related database and fetched names.

  2. Then set up hpm with hpm init: hpm init

  3. Before adding our paper to a database, review the default paper.yml template and insert the database ID: paper.yml The database ID is in the database URL. For the database just created: "https://www.notion.so/star9daisy/d91282815e5143818ae36ff05132d3b7?v=1ed0289b07ae4e1c8edeeb6eaf1d722f&pvs=4", "d91282815e5143818ae36ff05132d3b7" is the database ID.

    Remember to structure your database as shown above and add the integration to the database!

  4. Now let's add the paper into the database: hpm add The database in Notion should now look like the following: database

Engines

  • Inspire: It fetches papers from the Inspire HEP. It serves the default engine for hpm.
    • Parameters: arxiv_id
    • Returns: Paper(title, authors, abstract, journal, citations, url, bibtex, source)

Templates

You can adjust the properties within the template. On the left is the returned value from the engine and on the right is the property name in the Notion database.

  • paper.yml
    engine: Inspire
    database: <database_id>
    properties:
      arxiv_id: Arxiv ID
      citations: Citations
      title: Title
      journal: Journal
      authors: Authors
      abstract: Abstract
      url: URL
      bibtex: Bibtex
      source: Source
    

Updates

v0.1.3

  • Update hpm add to check if the paper already exists in the database.
  • You can now create a database with more properties then the template.

v0.1.2

  • Update paper from Inspire engine to include url, bibtex, and source.

v0.1.1

  • Add hpm init for interactive setup.
  • Add hpm add for adding a paper to a Notion database.
  • Introduce the default Inspire engine and paper.yml template.

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

hep_paper_manager-0.1.3.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

hep_paper_manager-0.1.3-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file hep_paper_manager-0.1.3.tar.gz.

File metadata

  • Download URL: hep_paper_manager-0.1.3.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.9 Darwin/21.6.0

File hashes

Hashes for hep_paper_manager-0.1.3.tar.gz
Algorithm Hash digest
SHA256 093ba76304d2614c65f86cbe0b1d97f0fbfc93a2f907ddd39c850f4bdfc5ab6b
MD5 578e0ad79602fcf0c5d059cb24cbac87
BLAKE2b-256 14dc4f5835baabf312c9c1abf89635ae26a1f4cf409fbea49d1d1bbc51d61a63

See more details on using hashes here.

File details

Details for the file hep_paper_manager-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for hep_paper_manager-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c39e5c02047609ba108001d4a94692400c53c29eb68339726b2646cfeeedb438
MD5 de550ed99c5838786affcbed5126d6b0
BLAKE2b-256 2c28c60beedc4c7899653eea6c4b1aee45b11023c61add48cfaf97dd345aa778

See more details on using hashes here.

Supported by

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