commit | eb22f3bb6a7ec23443d4118ab8bdcb50f44938de | [log] [tgz] |
---|---|---|
author | Abseil Team <absl-team@google.com> | Thu Jan 10 03:26:44 2019 -0800 |
committer | Copybara-Service <copybara-piper@google.com> | Thu Jan 10 03:26:59 2019 -0800 |
tree | 975c26c513ae07083dd94c165566b2536bd6cee5 | |
parent | 433f2b59486d21b7fa8b18f043deb3547945ef0e [diff] |
Expose vlog_is_on() to allow avoiding expensive computations for a vlog() call. A common pattern for higher logging level is to check if the level is "on" because the messages can be expensive to generate, so one wants to condition their generation to the level being on. PiperOrigin-RevId: 228679539
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.
Full documentation is forthcoming on https://abseil.io. For now, please refer to the in-code Python docstrings.
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.