optics-ts
python-lenses
Our great sponsors
optics-ts | python-lenses | |
---|---|---|
3 | 2 | |
678 | 295 | |
- | - | |
8.3 | 5.1 | |
14 days ago | 5 months ago | |
TypeScript | Python | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
optics-ts
- JavaScript Object Notation (JSON) Pointer
-
Advanced Large Object Management with jotai
The trick lies within the optic-ts integration.
-
Jotai, now with Optics
Fast forward to now and we are learning more about Jotai, a Recoil alternative from Poimandres ( creators of react-three-fiber, etc.). Needless to say, we were very excited when we stumbled upon Jotai Issue #44, a discussion concerning focusable atoms started by Meris Bahtijaragic and the compelling work that resulted, jotai-optics. This code wraps another library we have been very intrigued by as of late, optics-ts which provides a whole new level of typesafe, functional goodness.
python-lenses
-
Is there an alternative to using a bunch of nested If else statements?
python-lenses
-
Is there a quicker way to check if a attribute within an attribute exists?
Now, the thing you're doing can be done with something called lenses. But they're rather hard to learn, and really not something I would recommend for a beginner. But there's packages like this which enables you to compose a function that will succinctly parse the thing you're interested in and give you good error messages.
What are some alternatives?
monocle-ts - Functional optics: a (partial) porting of Scala monocle
glom - ☄️ Python's nested data operator (and CLI), for all your declarative restructuring needs. Got data? Glom it! ☄️
focal - Program user interfaces the FRP way.
pfun - Functional, composable, asynchronous, type-safe Python.
jotai-optics - Jotai integration library for optics-ts
diffractsim - ✨ A flexible diffraction simulator for exploring and visualizing physical optics.
jotai-devtools - Redux Devtools integrations for jotai.
static-frame - Immutable and statically-typeable DataFrames with runtime type and data validation
dinero.js - Create, calculate, and format money in JavaScript and TypeScript.
partial.lenses - Partial lenses is a comprehensive, high-performance optics library for JavaScript
jsonpath - A Go implementation of JSONPath
OptSys - First order ray-optical system simulation