Pypercraft
A Novel Application that Harnesses LLMs to Generate Articles and Papers
Abstract
Introducing a novel Python application that harnesses the expanded capabilities of ChatGPT, enabling users to effortlessly compose comprehensive articles and papers on topics of their choice. Surpassing token constraints, this application empowers users to craft full compositions comprising a Title, Introduction, Body, and Conclusion. Accessible through a user-friendly Streamlit interface or a FastAPI-powered API, the tool seamlessly merges user input with ChatGPT's contextual understanding, resulting in coherent written pieces. Offering an additional advantage, users can export their creations as Word documents (.docx), enhancing the versatility and utility of the generated content. Whether fashioning educational articles or structured research papers, this application revolutionizes content creation, amalgamating user ingenuity with ChatGPT's linguistic finesse and streamlining written communication with convenience and sophistication.
Live Demo
A live demo of the Streamlit application can be seen here
Quick Start Guide
Clone The Repo:
git clone git@github.com:alkhalifas/pypercraft.git
pip install -r requirements.txt
streamlit run ui.py
Install With Pip:
Install Library:
pip install pypercraft
Import and Apply:
from pypercraft import pypercraft
craft = pypercraft.Pypercraft(
# Describe the paper you want to generate
query= "A Scientific Paper about Deep Learning",
# Select the topic of your paper
topic= "Data Science",
# Select number of pages
num_pages= 3,
# Select tone of the writer
tone= "professional",
# Enter API key
api_key= os.getenv("OPENAI_API_KEY"))
# Construct the paper
paper = craft.construct()
# Export final paper
craft.export_docx('mypaper.docx')
Metadata
Release files for pypercraft 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pypercraft-0.1.5.tar.gz | 6.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypercraft-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / pypercraft-0.1.5.tar.gz
| Download URL | pypercraft-0.1.5.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76f95d7487ad7140081cd5f74deb1991b1ffd5551b5204b0ad1820f26dff9f5d
|
|
BLAKE2b-256 checksum How to use checksums |
a457923fcf75b1f2414b22bcafa701d144b90f45a91ae52f34776fdef11b4941
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / pypercraft-0.1.5-py3-none-any.whl
| Download URL | pypercraft-0.1.5-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
663e26cf4e961f5e8e427ec77791a83302a9528871418e9788a2cf946c877eb3
|
|
BLAKE2b-256 checksum How to use checksums |
1aca48d405d0d28cad147ccd1b4b8bea969f52bcdbd1b8aeff43cf5fc090425f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for pypercraft 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.