Abseil Python Common Libraries
  • Python 98.2%
  • Starlark 1.5%
  • Shell 0.3%
Find a file
Sergei Lebedev b7decb29ef Suppressed a few Pyrefly errors
PiperOrigin-RevId: 900298299
2026-04-15 12:43:08 -07:00
.github/workflows Add support for Python 3.14 and drop support for Python 3.8 and 3.9 2026-01-22 04:41:05 -08:00
absl Suppressed a few Pyrefly errors 2026-04-15 12:43:08 -07:00
ci Move the GitHub workflow and ci files to their correct location. 2023-04-18 10:34:28 -07:00
docs Update absl-py code formatting 2026-02-12 09:32:08 -08:00
smoke_tests Update absl-py code formatting 2026-02-12 09:32:08 -08:00
.bazelversion Fix CI by setting Bazel version to 8.x 2026-01-22 02:20:23 -08:00
.readthedocs.yaml Internal change 2023-06-01 16:38:10 -07:00
AUTHORS Initial commit: Abseil Python Common Libraries. 2017-09-19 14:25:01 -07:00
BUILD.bazel Create a top-level BUILD file that exports the LICENSE file. 2021-09-30 10:21:45 -07:00
CHANGELOG.md Release Abseil-py 2.4.0 2026-01-28 01:58:17 -08:00
CONTRIBUTING.md Update docs to reflect the default branch name change. 2021-11-17 09:24:06 -08:00
LICENSE Initial commit: Abseil Python Common Libraries. 2017-09-19 14:25:01 -07:00
MODULE.bazel Add support for Python 3.14 and drop support for Python 3.8 and 3.9 2026-01-22 04:41:05 -08:00
pyproject.toml Add support for Python 3.14 and drop support for Python 3.8 and 3.9 2026-01-22 04:41:05 -08:00
README.md Add useful links to the abseil-py public files 2025-05-27 06:03:47 -07:00
WORKSPACE Add support for Python 3.14 and drop support for Python 3.8 and 3.9 2026-01-22 04:41:05 -08:00

Package version Supported Python versions License Build Status Overall downloads Last month downloads

Abseil Python Common Libraries

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.

Features

  • Simple application startup
  • Distributed commandline flags system
  • Custom logging module with additional features
  • Testing utilities

Getting Started

Installation

To install the package, simply run:

pip install absl-py

Or install from source:

pip install .

Running Tests

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 also validate the type annotations against the latest mypy:

pip install mypy
mypy absl

Example Code

Please refer to smoke_tests/sample_app.py as an example to get started.

Documentation

See the Abseil Python Developer Guide.

Future Releases

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.

License

The Abseil Python library is licensed under the terms of the Apache license. See LICENSE for more information.