MCPcopy Index your code
hub / github.com/abseil/abseil-py

github.com/abseil/abseil-py @v2.5.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.5.0 ↗ · + Follow
2,124 symbols 5,399 edges 71 files 599 documented · 28%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Core symbols most depended-on inside this repo

_flags
called by 49
absl/flags/_flagvalues.py
run
called by 38
absl/testing/_pretty_print_reporter.py
get_flag_value
called by 33
absl/flags/_flagvalues.py
mark_as_parsed
called by 32
absl/flags/_flagvalues.py
info
called by 29
absl/logging/__init__.py
startTest
called by 24
absl/testing/xml_reporter.py
unparse_flags
called by 23
absl/flags/_flagvalues.py
findCaller
called by 22
absl/logging/__init__.py

Shape

Method 1,561
Class 296
Function 259
Route 8

Languages

Python100%

Modules by API surface

absl/testing/tests/absltest_test.py305 symbols
absl/testing/tests/parameterized_test.py165 symbols
absl/flags/tests/flags_test.py147 symbols
absl/logging/tests/logging_test.py128 symbols
absl/testing/absltest.py124 symbols
absl/logging/__init__.py87 symbols
absl/flags/tests/_validators_test.py82 symbols
absl/flags/tests/_flagvalues_test.py79 symbols
absl/flags/_flagvalues.py78 symbols
absl/testing/tests/xml_reporter_test.py66 symbols
absl/testing/tests/flagsaver_test.py66 symbols
absl/flags/_argument_parser.py56 symbols

For agents

$ claude mcp add abseil-py \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact