No project description provided
Project description
_ _____ ____ _ _ ______ _ _ _ _ _____ _____
| | |_ _|/ __ \| \ | | ____| | | | \ | |/ ____/ ____|
| | | | | | | | \| | |__ | | | | \| | | | (___
| | | | | | | | . ` | __| | | | | . ` | | \___ \
| |____ _| |_| |__| | |\ | | | |__| | |\ | |________) |
|______|_____\____/|_| \_|_| \____/|_| \_|\_____|_____/
lionfuncs: Empowering Python Development ๐ฆ
๐ 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:
- Data Science: Preprocessing and cleaning large datasets
- Web Development: Parsing and manipulating JSON data from APIs
- Text Analysis: Implementing advanced search and similarity algorithms
- 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:
- Watch the GitHub repository
- Check the CHANGELOG.md for version history
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lionfuncs-1.2.1.tar.gz
.
File metadata
- Download URL: lionfuncs-1.2.1.tar.gz
- Upload date:
- Size: 65.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 985071973e168abf2fa1e6e899d6df052d7093db567297b16ab973917c703e58 |
|
MD5 | 0616a8ee0e32607ba6a3086258aadadc |
|
BLAKE2b-256 | 63a3b2f6daebaf60ca6088621998f8e40682a71926e9841dffef715ccb23f209 |
File details
Details for the file lionfuncs-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: lionfuncs-1.2.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34245569ec5023a9bc62a474d53345ae959eea32f94e20b20a2ce5be74465122 |
|
MD5 | dee25571f1698d7f66702f54957374d4 |
|
BLAKE2b-256 | c0f2747be160059357121c5de401d23e2c764af2431a7fd3cc781e2ba3004e26 |