semvec/pypi-packages huggingface dataset:
chemax 1.0.1
Easily calculate the m.w. and e.m of a molecule

# Explaintions

## Mol.Wt and Exact Mass

### Mol.Wt

The average mass taking into account the abundance of isotopes in nature.

### Exact Mass

The mass of the most stable isotope.

## Data Source

- [International Atomic Energy Agency (IAEA)](https://www-nds.iaea.org/)
- [International Union of Pure and Applied Chemistry (IUPAC)](https://www.iupac.org/)

# Usage

## Install

```bash
pip install chemax
```

## Import

```python
from chemax import Molecule
```

## Create Molecule Object

```python
from chemax import Molecule

molecule = Molecule.simple_generate('H2O')
print(molecule.mol_wt)
print(molecule.exact_mass)
print(molecule.electric_charge)
```

## Accepted Formula

- Simple Formula: `H2O`
- Structural Formula: `CH3CH2OH`, `CH3(CH2)2OH`
- Hydrogen Isotopes: `D2O`, `T2O`, `CDCl3`(Chloroform-d)
- Ionic Formula: `{COO}-`, `{CH2(COO)2}2-`
- Some group abbreviations: `{PhCOO}-`, `EtOH`
expdf2txt 1.1.1
PDF to TXT
Keywords: pdf2txt,pdftotxt,invoice2text,invoice2txt,ag tech,gaurav mehra,expdf2txt,pdftoimage,pdf2image

# EXPDF2TXT

## 🤔 Overview

The expdf2txt is a versatile and efficient package designed for seamless conversion of PDF (Portable Document Format) files into TXT (Plain Text) format.
This package empowers users with a straightforward and reliable method to extract textual content from PDF documents, making it easily accessible and editable."


# ❓ Features

## 1. InvoiceExtractor (Convert Invoice Pdf to Text)

### Code: 
```python
from expdf2txt.invoice2data import InvoiceExtractor
FILEPATH = "invoice_2001321.pdf"
invocie_extractor = InvoiceExtractor(FILEPATH)
data = invocie_extractor.openai_extract_data(format_data=True)
print(data)
```

## 2. ImageExtractor (extract image from pdf)

### Code:   
```python
from expdf2txt.pdf2data import PDFExtractor
FILEPATH = "invoice_2001321.pdf"
pdf_obj = PDFExtractor(FILEPATH)
pdf_obj.extract_image()
```




# 🚀 Methods

## 1. InvoiceExtractor methods :
**openai_extract_data()** 'This method extracts text from a Invoice Pdf'
- **Parameters:**
 1. ***temperature (float, optional):*** The temperature parameter for the OpenAI LLM.
 2. ***api_key (str, optional):*** The API key for accessing OpenAI services. 
                Note: "If the default API key is not functioning, please provide an alternative API key for use."  
 3. ***template (str, optional):*** Custom template string for document extraction.
 4. ***format_data (bool, optional):*** If True, format the extracted data into a dictionary or list; if False, return raw output.
                Note: "If the data is successfully converted into a dictionary, it will be returned as a dictionary. Otherwise, it will be returned as a list."

## 2. PDFExtractor methods:
- **countpages()** 'Count the number of pages in the document.'
- **extract_string()** 'Extract the data from the source.'
- **extract_image()** 'Extract images from the PDF document and saves them as separate files.'


# Dependencies

- **openai**

- **pytesseract**

- **PyPDF2**

- **PyMuPDF**

# License

This project is licensed under the MIT License - see the LICENSE file for details.

# Issues

If you encounter any issues or have suggestions, please create an issue on the GitHub repository.

# Acknowledgments

Mention any libraries or tools you used and give credit to their respective authors.
gaia-cmd-plotter 0.1.5
A Python package that provides a matplotlib.pyplot.Axes object that displays a Gaia CMD background.
Requires Python: >=3.8

# gaia-cmd-plotter

`gaia_cmd_plotter` is a Python package for creating customized Matplotlib axes that display a Gaia Color-Magnitude
Diagram (CMD) background. This package is useful for visualising astronomical data within the context of a Gaia CMD.

## Installation

You can install gaia_cmd_plotter using `pip`:

```bash
pip install gaia-cmd-plotter
```

## Usage

To use the package, first import the `GaiaCMDAxis` class from the `gaia_cmd_plotter.gaia_cmd_plotter` module.
```python
from gaia_cmd_plotter.gaia_cmd_axis import GaiaCMDAxis
```

Next, create a new `GaiaCMDAxis` object and add it to a Matplotlib figure.
```python
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(8, 8))
ax = GaiaCMDAxis(fig)
```

You can then use the `GaiaCMDAxis` object like any other Matplotlib axis. For example, you can plot data on top of 
the Gaia CMD background, 
```python
bp_rp = 3.5
g_abs = 5.0
ax.plot(bp_rp, g_abs, "ko", ms=10, mec="k")
```

## Acknowledgements
This package has made use of data from the European Space Agency (ESA) [Gaia mission](https://www.cosmos.esa.int/gaia), 
processed by the [Gaia Data Processing and Analysis Consortium](https://www.cosmos.esa.int/web/gaia/dpac/consortium). 
The CMD background data was obtained from the Gaia data release 3 (DR3; Gaia Collaboration et al. 2016, 2023). The bulk 
of points in the CMD background are retrieved from the Gaia DR3 catalog, using the query in Gaia Collaboration 2018.


## References
1. [Gaia Collaboration, 2016, A&A, 595, A1](https://ui.adsabs.harvard.edu/abs/2016A%26A...595A...1G/abstract)
2. [Gaia Collaboration, 2018, A&A, 616, A10](https://ui.adsabs.harvard.edu/abs/2018A%26A...616A...1G/abstract)
3. [Gaia Collaboration, 2023, A&A, 674, A38](https://ui.adsabs.harvard.edu/abs/2023A%26A...674A...1G/abstract)