Comments (5)
[...] that match tags with simple =, in, not =, not in type operations.
this was exactly where I was going with this, works for me!
from hamilton.
Agreed that we should allow for some structure here. I think we have two choices:
- Allow any arbitrary json here
- Allow some specific structure that has semantic meaning.
I'm going to recommend (2). In this case:
- strings assign a value to the tag
- lists assign multiple values to the tag
Then we have a query system (suggested in here) that allows you to query for nodes that match tags. With simple =
, in
, not =
, not in
type operations. The driver maintains a list and can do the queries for you. I don't really foresee the need for anything more complex than these operations, which work nicely with the list suggested here and match the common configuration patterns... @config.when
, @config.when_in
, etc...
from hamilton.
also - #293.
from hamilton.
Otherwise I think lists of strings seem to be fine. Can't seem to recall why we didn't do this in the first place.
The other -- nested dicts can already be done with the namespacing/dot stuff.
@tag(**{'my.tag': 'tag_value'})
def my_function(...) -> ...:
from hamilton.
@kzk2000 want to take #622 for a spin?
You should be able to do what you asked for.
from hamilton.
Related Issues (20)
- Lifecycle Validators HOT 1
- Schema only displayed for one node when multiple nodes have the same schema HOT 2
- Can't have a function with both Parallelizable and Collect HOT 1
- Support daft dataframes HOT 1
- Change node hooks to take in HamiltonNode
- Easy way to scrape local functions
- Can't save DAG file in subdirectories HOT 5
- Post-function modification (opposite/equivalent to `pipe`) HOT 4
- Expose default values in `HamiltonNode` HOT 1
- Allow materializer targets to specify inputs HOT 2
- VSCode Extension can't register modules HOT 1
- Standardize API for dataflow and node versioning HOT 1
- Add funnel metrics example & hub contribution
- Parallelizable hangs in certain cases
- Parallelizable cannot aggregate or return multiple Collects HOT 3
- Add ability to mark function outputs as unserializable HOT 2
- Registering `Dataflows` and `ExecutionContext` by project
- Use @inject with @pipe decorators HOT 1
- Add @post_pipe HOT 1
- Add version field to data saver/ loader metadata HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hamilton.