site
Stdlib — IntrospectionPython 2.0+Advanced
Site-specific configuration: user site-packages, .pth files
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import site print(f"Module: site") print(f"Contents: {dir(site)[:10]}")
The site module is part of Python's standard library. Site-specific configuration: user site-packages, .pth files.
Try in PlaygroundTags
stdlibintrospectionmetaprogramming