commit | 94670de3dcf271f95d000cd8cdad754014a4cb5d | [log] [tgz] |
---|---|---|
author | Abseil Team <absl-team@google.com> | Mon Dec 14 13:02:02 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Dec 14 13:02:30 2020 -0800 |
tree | 05d8ab4ffa1a70fdd88ce16a60f0ffb15fb0a5f4 | |
parent | d61b0b6bda1902f645e5bbbc3f138c142767befa [diff] |
Support using flagholder in flagsaver. `(HOLDER, value)` pairs can now be specified in positional arguments. It is equivalent to specifying `**{HOLDER.name: value}` We can mix and match holder and non-holder overrides. So usages like `flagsaver((HOLDER1, value1), (HOLDER2, value2), flag_name=value)` are legal as well. PiperOrigin-RevId: 347450631 Change-Id: I45bdf7bd56ad1d65d62ff34536ef09e47fce7ae8
This repository is a collection of Python library code for building Python applications. The code is collected from Google's own Python code base, and has been extensively tested and used in production.
To install the package, simply run:
pip install absl-py
Or install from source:
python setup.py install
To run Abseil tests, you can clone the git repo and run bazel:
git clone https://github.com/abseil/abseil-py.git cd abseil-py bazel test absl/...
Please refer to smoke_tests/sample_app.py as an example to get started.
See the Abseil Python Developer Guide.
The current repository includes an initial set of libraries for early adoption. More components and interoperability with Abseil C++ Common Libraries will come in future releases.
The Abseil Python library is licensed under the terms of the Apache license. See LICENSE for more information.