Skip to main content

Phinity

A self-improvement SDK for language models.

Installation

pip install -e .

Usage

from phinity import LLMGenerator
from phinity.utils.config import Config

# Setup OpenAI
Config.setup_openai()  # Or provide key: Config.setup_openai("your-api-key")

# Create generator
generator = LLMGenerator()

# Generate pairs
instructions = ["Write a haiku about programming"]
pairs = generator.generate_pairs(instructions=instructions)

Now let's create and activate a virtual environment:

```bash:create_project.sh
# Create project structure
mkdir -p phinity/phinity/{core,generators,evaluators,utils}
mkdir -p phinity/examples
touch phinity/README.md
touch phinity/setup.py
touch phinity/requirements.txt
touch phinity/phinity/__init__.py
touch phinity/phinity/core/__init__.py
touch phinity/phinity/generators/__init__.py
touch phinity/phinity/evaluators/__init__.py
touch phinity/phinity/utils/__init__.py
touch phinity/.env.template
touch phinity/.gitignore

# Create and activate virtual environment
cd phinity
python -m venv venv
source venv/bin/activate  # On Windows, use: venv\Scripts\activate

# Install package in development mode
pip install -e .

Now you should be able to:

  1. Create the virtual environment and install the package:
cd phinity
python -m venv venv
source venv/bin/activate  # On Windows, use: venv\Scripts\activate
pip install -e .
  1. Copy the template and add your API key:
cp .env.template .env
# Edit .env and add your API key
  1. Run the test:
python examples/openai_test.py

Would you like me to make any adjustments to these files or add any additional setup steps?

Metadata

Release files for phinity 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phinity 0.1.2
File Size Uploaded Provenance Actions
phinity-0.1.2.tar.gz 7.9 kB Without provenance Details for phinity-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phinity 0.1.2
File Interpreter ABI Platform Actions
phinity-0.1.2-py3-none-any.whl Python 3 none any Details for phinity-0.1.2-py3-none-any.whl

Total release size: 16.3 kB

Release files / phinity-0.1.2.tar.gz

Download URL phinity-0.1.2.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c22e9fc6dbc073754288eee236ca5ec800c56ae886a89adbce043d771211b89a
BLAKE2b-256 checksum
How to use checksums
67269dbbf5ee1a2d5ddd9da559e92fea81a70f4c2f934295f4716230be72cbd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / phinity-0.1.2-py3-none-any.whl

Download URL phinity-0.1.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab9bbde2c82c9c6dda6dce139e3822154a8b1cca1360899b5f22cdc12a9e30c6
BLAKE2b-256 checksum
How to use checksums
d8c56703560b0ff019824a097f3332a0e02fcf9ca701c62abf989a72d4a745fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Security for phinity 0.1.2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page