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

Uploaded Source

Built Distribution

lionfuncs-1.3.1-py3-none-any.whl (99.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lionfuncs-1.3.1.tar.gz
  • Upload date:
  • Size: 67.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.3.1.tar.gz
Algorithm Hash digest
SHA256 82a37218eabc323d6b0d2f429861ccaf357af6f4a1121f1c3f7a6302c8c3bcf7
MD5 838bbab51a62de14716d080391afef44
BLAKE2b-256 a5d4d9dc22f10dc3de00d400b723766eb012814a87f9a2fa85bb0ecef8b5d837

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lionfuncs-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 99.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9c436237a5043db07e7ca28bfcf226c1f62f214b900d28d24f348c3aaed87a2
MD5 2f3955a792e0e95f512dd0918ff80591
BLAKE2b-256 b0015eeca7eb1babd8a23aaaec9a49837fcb950ffa1474eea4c8d084e360a920

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