metaist / attrbox Goto Github PK
View Code? Open in Web Editor NEWAttribute-based data structures
Home Page: https://metaist.github.io/attrbox
License: MIT License
Attribute-based data structures
Home Page: https://metaist.github.io/attrbox
License: MIT License
Currently AttrDict.set
cannot support traversal across a list
. Also AttrList
should support a .get
and .set
with the same semantics.
Use .get
with a sentinel object as default
to detect if the key exists.
I thought I disagreed with the advice from PEP 8, but turns out I don't.
This would allow ${section.key}
expansions for {"section": {"key": 5}}
.
This is increasingly necessary for, e.g., #12
@Pugio has often talked about having a nice functional wrapper (ala ruby) in a python context. My first attempt at this failed because I was trying to stick to the existing type system. Let's see if we can do better by just making a wrapper object.
constructors
__init__
copy
wrap
fromkeys
contents
__repr__
__len__
__contains__
__iter__
__eq__
keys
values
items
attr
count
get
select
first
last
take
drop
uniq
filter
index
apply
map
reduce
each
group
format
sort
reverse
compact
flatten
zip
join
add
push
append
concat
extend
insert
setdefault
__add__
__iadd__
remove
pop
popitem
delete
remove
clear
modify
update
__imul__
__rmul__
I only want the most-used classes and functions at the top-most level. Everything else can be accessed more directly, if needed, but I don't want to pollute the namespace.
Currently, config values are loaded before CLI arguments (argv
), which is correct. Except that CLI arguments also include default values. Which means that default values are superseding config values.
The order I'd like (later values winning):
But this implies that we need to know which of the docopt
values are default and which happen to have the same value as the default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.