Giter Club home page Giter Club logo

attrbox's People

Contributors

metaist avatar

Stargazers

 avatar

Watchers

 avatar

attrbox's Issues

update: LTS

  • .github/workflows/ci.yaml
  • .github/workflows/codeql.yml
  • .github/workflows/pypi.yaml
  • .github/FUNDING.yml
  • docs
  • .cspell.json
  • .editorconfig
  • .gitattributes
  • .gitignore
  • CHANGELOG.md
  • CONTRIBUTING.md
  • LICENSE.md
  • pyproject.toml
  • README.md
  • mascot

add: functional API wrapper

@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__

clean: top-level __init__.py

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.

fix: load order for config

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):

  • default values
  • config values
  • CLI arguments

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.