Skip to main content

No project description provided

Project description

  _      _____  ____  _   _ ______ _    _ _   _  _____ _____
 | |    |_   _|/ __ \| \ | |  ____| |  | | \ | |/ ____/ ____|
 | |      | | | |  | |  \| | |__  | |  | |  \| | |   | (___
 | |      | | | |  | | . ` |  __| | |  | | . ` | |    \___ \
 | |____ _| |_| |__| | |\  | |    | |__| | |\  | |________) |
 |______|_____\____/|_| \_|_|     \____/|_| \_|\_____|_____/

lionfuncs: Empowering Python Development ๐Ÿฆ

Python Version PyPI version PyPI - Downloads Discord


๐ŸŒŸ Key Features

  • ๐Ÿ”ข Efficient Data Handling: Robust functions for complex data structures
  • ๐Ÿ” Advanced Parsing: Tools for JSON, Markdown, and text parsing
  • ๐Ÿงฎ Algorithmic Operations: Similarity and distance algorithms
  • ๐Ÿผ Enhanced Pandas Integration: Extended DataFrame functionality
  • ๐Ÿ”„ Flexible Type Conversions: Seamless data type conversions
  • ๐Ÿ“ฆ Package Management: Import and package operation utilities

๐Ÿ—๏ธ Library Structure and Capabilities

lionfuncs
โ”œโ”€โ”€ algo        # Algorithmic operations
โ”œโ”€โ”€ data        # Data handling and manipulation
โ”œโ”€โ”€ parse       # Parsing utilities
โ”œโ”€โ”€ func        # Function handling and decorators
โ”œโ”€โ”€ package     # Package and import management
โ””โ”€โ”€ integrations# Integrations (e.g., pandas)
  • algo: Implements various similarity and distance algorithms (e.g., cosine, Levenshtein, Jaro-Winkler).
  • data: Provides tools for efficient manipulation of complex data structures, including nested dictionaries and lists.
  • parse: Offers advanced parsing capabilities for JSON, Markdown, and other text formats, with robust error handling.
  • func: Includes decorators and utilities for function manipulation, async operations, and error handling.
  • package: Manages package imports and provides tools for dynamic module loading and version checking.
  • integrations: Extends functionality of popular libraries like pandas, offering optimized operations on DataFrames.

๐Ÿš€ Quick Start

Installation

Choose the method that best suits your needs:

# For stable release
pip install lionfuncs

# For latest development version
pip install git+https://github.com/lion-agi/lionfuncs.git

# If you're using poetry
poetry add lionfuncs

Compatibility: lionfuncs supports Python 3.7+

Basic Usage

from lionfuncs.data import to_dict
from lionfuncs.parse import md_to_json
from lionfuncs.algo import cosine_similarity

# Convert string to dict
data = to_dict('{"name": "John", "age": 30}')
print(data)  # Output: {'name': 'John', 'age': 30}

# Parse Markdown to JSON
md_text = "# Title\n- Item 1\n- Item 2"
json_data = md_to_json(md_text)
print(json_data)  # Output: {'title': 'Title', 'items': ['Item 1', 'Item 2']}

# Calculate similarity
similarity = cosine_similarity("hello world", "hello there")
print(similarity)  # Output: 0.7071067811865475

๐Ÿ“Š Performance and Optimization

lionfuncs is designed with performance in mind:

  • Efficient algorithms optimized for Python
  • Minimal dependencies to reduce overhead
  • Utilizes Python's built-in functions and libraries where possible

In benchmark tests, lionfuncs has shown significant performance improvements in data parsing and manipulation tasks compared to conventional methods.


๐ŸŒ Use Cases

lionfuncs has been successfully used in various domains:

  1. Data Science: Preprocessing and cleaning large datasets
  2. Web Development: Parsing and manipulating JSON data from APIs
  3. Text Analysis: Implementing advanced search and similarity algorithms
  4. DevOps: Automating package management and deployment processes

๐Ÿ“š Documentation

For detailed documentation, including API references and advanced usage examples, visit our documentation site.


๐Ÿ”„ Staying Updated

To stay updated with the latest changes and releases:

  1. Watch the GitHub repository
  2. Check the CHANGELOG.md for version history
  3. Follow us on Twitter @lionfuncs for announcements

We follow Semantic Versioning. For upgrade guides between major versions, refer to our documentation.


๐Ÿค Contributing

We welcome contributions! See our Contributing Guide for details on how to get started.


๐Ÿ“„ License

lionfuncs is released under the Apache 2.0 License. See the LICENSE file for details.


๐Ÿ†˜ Support

If you encounter any issues or have questions, please file an issue on our GitHub issue tracker.

For security-related issues, please refer to our Security Policy.


๐Ÿ™ Acknowledgments

Thank you to all our contributors who've helped make lionfuncs roar! ๐Ÿฆ๐Ÿ’–


Happy coding with lionfuncs! ๐ŸŽ‰๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘ฉโ€๐Ÿ’ป

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

lionfuncs-2.0.0.tar.gz (57.6 kB view details)

Uploaded Source

Built Distribution

lionfuncs-2.0.0-py3-none-any.whl (84.4 kB view details)

Uploaded Python 3

File details

Details for the file lionfuncs-2.0.0.tar.gz.

File metadata

  • Download URL: lionfuncs-2.0.0.tar.gz
  • Upload date:
  • Size: 57.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for lionfuncs-2.0.0.tar.gz
Algorithm Hash digest
SHA256 293aa461ec0b065cb94bca81e6dc5f9d7b48cbc782f4e411b6198f3ae809d084
MD5 5af45407a92d5b8d2b861c2598e96622
BLAKE2b-256 6222bde3506fe0e2503cba98f99eabb281e5452d726e2d7d05c61a64a73e7917

See more details on using hashes here.

File details

Details for the file lionfuncs-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: lionfuncs-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 84.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for lionfuncs-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2875d84e313346cb597c0e8e492974d8c57965a7030a2678359e5da75e317e1c
MD5 8dfaf95dcc1f42cf882caf50cd0e03a5
BLAKE2b-256 ab4ca5d8630be9bd417bdd2f197488f39ab22dafe9e5113856e94dd2facd0ed4

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