-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert methods typing support, update docs to reflect
- Loading branch information
Showing
14 changed files
with
336 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Contribution Guidelines | ||
|
||
## Contribution | ||
|
||
We welcome contributions from the community! Here’s a quick guide on how to contribute: | ||
|
||
1. **Fork the Repository** | ||
- Go to the <a href="https://github.com/EzyGang/py-cachify" target="_blank">py-cachify GitHub page</a> and click on "Fork." | ||
|
||
2. **Clone Your Fork** | ||
- Clone your forked repository to your local machine. | ||
|
||
3. **Create a New Branch** | ||
- Create a new branch for your feature or fix. | ||
|
||
4. **Make Changes and Commit** | ||
- Implement your changes and commit them with a clear message. | ||
|
||
5. **Push to Your Fork** | ||
- Push your changes to your fork on GitHub. | ||
|
||
6. **Open a Pull Request** | ||
- Navigate to the original repository and open a pull request. Describe your changes and why they are beneficial. | ||
|
||
We appreciate your contributions and look forward to collaborating with you! | ||
|
||
## Thank You! | ||
|
||
Your support and contributions make a difference. Let’s build an amazing package together! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Help Py-Cachify Package | ||
|
||
Thank you for your interest in py-cachify! | ||
Your support is crucial for the growth and improvement of this project. | ||
|
||
Here are a few ways you can help: | ||
## Ways to Support | ||
|
||
1. **Try It Out** | ||
- Download py-cachify from PyPI and test it out in your projects. Your feedback is invaluable! | ||
|
||
2. **Star on GitHub** | ||
- If you find py-cachify helpful, please consider <a href="https://github.com/EzyGang/py-cachify" target="_blank">starring the repository</a> on GitHub. | ||
This not only shows your appreciation but also helps others discover the package. | ||
|
||
3. **Share It** | ||
- Spread the word! Share your experiences and the benefits of using py-cachify with your community on social media, forums, or blogs. | ||
|
||
4. **Report Issues** | ||
- If you encounter any issues or have questions, please check our <a href="https://github.com/EzyGang/py-cachify/issues" target="_blank">Issues page on GitHub</a> | ||
where you can report bugs, ask questions, or suggest features. | ||
|
||
## Contribution guidelines | ||
|
||
Do you have a wonderful idea or want to help fix an issue? | ||
|
||
Go to the [contribution guide](./contribution.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Release Notes | ||
|
||
## [2.0.0](https://github.com/EzyGang/py-cachify/releases/tag/v2.0.0) | ||
|
||
### Features & Enchancements | ||
- **Lock improvements**: Locks are now way more versatile and support new parameters like: | ||
- Whether to wait for the lock to expire or not (`nowait`, boolean) | ||
- Timeouts for how long should it try to acquire a lock. (`timeout`, int | float | None) | ||
- Expiration param to prevent deadlocks (`exp`, int | None) | ||
- When using lock as a decorator or using `once` decorator two methods are being added to the wrapped function: | ||
- `is_locked(*args, **kwargs)` - to check whether the lock is acquired or not | ||
- `release(*args, **kwargs)` - to forcefully release a lock. | ||
|
||
- More info could be found [here](./reference/lock.md). | ||
|
||
- **File layout improved**: All internal files have been made private helping LSP's and IDE's | ||
provide better import locations for the features py-cachify provides. | ||
|
||
- **Type annotations are now featuring TypeIs & Protocols**: Updated type annotations are now providing even better IDE support | ||
for you to write better code way easier, exposing all methods added on decorated functions and helping you inline. | ||
|
||
- **Additional tests were added** | ||
|
||
- **`cached` decorator improvements**: There is now a new method attached to the wrapped functions called | ||
`reset(*args, **kwargs)` to allow for a quick cache resets. | ||
- More info could be found [here](./reference/cached.md). | ||
|
||
- **Bump dependencies** | ||
|
||
### Breaking Changes | ||
- **async_lock**: Async lock has been removed, you should replace it with just `lock` since it now can work in both contexts. | ||
- **import locations**: since files were renamed and moved around quite a bit, | ||
some import locations may not work after the 2.0.0 release, so I recommend reimporting used functions to make sure it works in your project. | ||
### Deprecations | ||
- **async_once, sync_once, async_cached, sync_cached**: Are now deprecated and scheduled for removal in 3.0.0 | ||
(all of those methods are just aliases for `cached` and `once`). | ||
|
||
### Miscellaneous | ||
- **Documentation**: Documentation was refactored and greatly improved. | ||
|
||
I recommend checking out **[full API refernce](reference/init.md)** to get familiar with changes and new features. | ||
|
||
## [1.1.2](https://github.com/EzyGang/py-cachify/releases/tag/v1.1.2) | ||
|
||
### Features & Enchancements | ||
- **Bump dependencies** | ||
- **Docs update to include info on `init_cachify` `prefix` parameter** | ||
|
||
|
||
## [1.1.0](https://github.com/EzyGang/py-cachify/releases/tag/v1.1.2) | ||
### Features & Enchancements | ||
- **Custom encoders/decoders for `cached` decorator**: `enc_dec` parameter introduced on a `cached` decorator. | ||
|
||
### Miscellaneous | ||
- **Documentation update** |
Oops, something went wrong.