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-1.3.2.tar.gz (67.8 kB view details)

Uploaded Source

Built Distribution

lionfuncs-1.3.2-py3-none-any.whl (99.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lionfuncs-1.3.2.tar.gz
  • Upload date:
  • Size: 67.8 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-1.3.2.tar.gz
Algorithm Hash digest
SHA256 10259a7f6556c467dff888f7e2d89b63cc44ee3b65d8ded09d4813de8cc4588f
MD5 23faf4af34957a18cdc72e6d6078e8b2
BLAKE2b-256 8f664f3690eb3f54c9bdd18816fc4058d9031f4e95682f89c9ba81c6ac65ff77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lionfuncs-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 99.8 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-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 018e2e6915b310117eb7fcd95c0a938b1c34b559ab2bd40a9e31ebfc6380bd2e
MD5 be6e06bf228e3ea7910c644b549ac82b
BLAKE2b-256 ec6dc0190466cdd6ce0967875ca47e446533a212a606fe36019c1f9c2447cd64

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