Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more bytes #207

Merged
merged 5 commits into from
Feb 26, 2025
Merged

more bytes #207

merged 5 commits into from
Feb 26, 2025

Conversation

jessekrubin
Copy link
Owner

  • Allow either py-bytes or ry-bytes in more places

AI word salad

This pull request includes several changes to the ryo3 project, focusing on updates to JSON handling, file system operations, and documentation. The main changes involve renaming functions for clarity, adding support for new data types, and improving the consistency of the codebase.

JSON Handling Updates:

  • Renamed jiter_cache_clear to json_cache_clear and jiter_cache_usage to json_cache_usage for better clarity and consistency. [1] [2]
  • Removed parse_json_str and updated parse_json to handle both string and byte inputs. [1] [2]

File System Operations:

  • Added read and write methods to the FsPath class to support Buffer and bytes objects. [1] [2]
  • Introduced async functions for metadata and rename operations in the ryo3-tokio crate.

Documentation and Typing:

  • Updated README.md and docs/src/api.md to include new imports and function definitions. [1] [2]
  • Added from __future__ import annotations to improve type hinting and forward compatibility. [1] [2]

Miscellaneous:

  • Updated version in Cargo.toml to 0.0.32.
  • Simplified byte range initialization in test files. [1] [2]

These changes improve the functionality, consistency, and clarity of the ryo3 project, making it easier to maintain and extend in the future.

Copy link

cloudflare-workers-and-pages bot commented Feb 26, 2025

Deploying ry with  Cloudflare Pages  Cloudflare Pages

Latest commit: bd756bb
Status: ✅  Deploy successful!
Preview URL: https://555dfa7a.ry-5qq.pages.dev
Branch Preview URL: https://jkrdev.ry-5qq.pages.dev

View logs

@jessekrubin jessekrubin merged commit fe0d28f into main Feb 26, 2025
23 checks passed
@jessekrubin jessekrubin deleted the jkrdev branch February 26, 2025 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant