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

Uploaded Source

Built Distribution

lionfuncs-1.2.2-py3-none-any.whl (98.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lionfuncs-1.2.2.tar.gz
  • Upload date:
  • Size: 65.7 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.2.2.tar.gz
Algorithm Hash digest
SHA256 cf86c0ad165b866ecacac6220b2bd3b1ae24d70594a8610f78e2f9971f934c92
MD5 24fb7bf01310be002d9f9fdb16bfa3c3
BLAKE2b-256 660788323e0ad60bb8e2de4fa4fb2713e10fe581232c301e73055a523c809869

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lionfuncs-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 98.1 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1317d26d31b917b0f165529048bc34db2ffb45bd3a7eee17e32085a62f8a129
MD5 857b1081fe0e135f513fa58e94088105
BLAKE2b-256 2a18755e59a1d384e5dbd8bfb3f1012b8a58ad815ac3547f56cc0a06ae587814

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