Skip to main content

A lightweight collection of Generative AI code examples and utilities

Project description

Sparx-AI

A Python library containing a collection of Generative AI code examples and utilities for learning and development.

Installation

pip install sparx-ai

Usage

Basic Usage

from sparx import show_code

# Display a specific code example
show_code('prac1.txt')

List Available Examples

from sparx import list_examples

# Show all available code examples
list_examples()

Advanced Usage

from sparx import show_code, get_file_description

# Show code without line numbers
show_code('prac2.txt', line_numbers=False)

# Get description of a file
description = get_file_description('prac1.txt')
print(description)

Available Examples

The library includes the following code examples:

  • prac1.txt - Basic Data Preprocessing for Generative AI
  • prac2.txt - Visualizing Data Distributions for Generative AI
  • prac3.txt - TensorFlow Computation Graph with Eager Execution
  • prac4.txt - [Description automatically extracted]
  • prac5.txt - GloVe Pre-trained Embeddings
  • And more...

Features

  • 📁 Easy access to curated AI/ML code examples
  • 🔍 Search and display specific examples
  • 📝 Line-numbered code display
  • 📚 List all available examples
  • 🏷️ Get descriptions from code files

Requirements

  • Python 3.7+
  • Dependencies: numpy, matplotlib, scikit-learn, tensorflow, torch, spacy, transformers, and more

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

sparx_ai-1.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

sparx_ai-1.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file sparx_ai-1.1.0.tar.gz.

File metadata

  • Download URL: sparx_ai-1.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for sparx_ai-1.1.0.tar.gz
Algorithm Hash digest
SHA256 761d1917ea704a66332a5849894713dacb5d2186ade1295fe5c4cfc08e18e308
MD5 174271e932f08a3021871eaecc8d2c4e
BLAKE2b-256 0308aaa39d867815e8e3bbc0a6e529914fabbea5b3deda2b3968f4f95f72ede3

See more details on using hashes here.

File details

Details for the file sparx_ai-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: sparx_ai-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for sparx_ai-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e136650408d367a365bcea4fa59ea95d03a257fa76c01dba1b63d84ab29bc44c
MD5 b2572ee71989bcef2b8451f7acff872d
BLAKE2b-256 c3621087812b2c8c140a8527920501c7da867715b28d9e95370e9331db5c75d8

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