Skip to main content

English | 简体中文 img

Package Man

The easiest way of auto installing and importing many libraries in Python. Inspired by pacman in R

Features

  • 🤖 Auto-detection if a pip library is not installed
  • 🚀 A faster way than manual detection and installation
  • 👶 Ease-of-use at the baby level

Recent updates

  • 2025-07-28 Add support for variadic arguments
  • 2024-11-27 Initialized, supporting installing a single package and a list of packages

Installation

pip install pkgman

Usage

Install and import a bunch of libraries using two lines:

  • A single module

    from pkgman import include
    include("numpy")
    
  • Many modules

    from pkgman import include
    include(["numpy", "pandas"])
    

    Or simply use variadic arguments without the parentheses ([list]) of the list

    from pkgman import include
    include("numpy", "pandas")
    

Then, all of them will be imported; and if not installed, installed and imported.

Example 1. Import multiple modules that may not be installed

For example, if we want to import numpy and pandas but the package may not be installed, see multiple.modules.py

And the outputs will be:

[pkgman] Installing and importing ['numpy', 'pandas']...
[pkgman] 2 packages have been imported.

Now we check if they are properly imported:

Empty DataFrame
Columns: []
Index: [] 5.4

Yes!

Example 2. Import a single modeul

You can also use it for only one module:

from pkgman import include
include("numpy")

License

MIT License

Metadata

Release files for pkgman 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pkgman 0.1.1
File Size Uploaded Provenance
pkgman-0.1.1.tar.gz 3.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pkgman 0.1.1
File Interpreter ABI Platform
pkgman-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / pkgman-0.1.1.tar.gz

Download URL pkgman-0.1.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0ccebc8e9d7f1103424937260d1152b8032fe42752d25bca3793f9f4d7f16d21
BLAKE2b-256 checksum
How to use checksums
2b7ca0c1f13698514054a250c7932029f27999dff2160657ba5ad5887e9dca99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2025.

Transparency log

Release files / pkgman-0.1.1-py3-none-any.whl

Download URL pkgman-0.1.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0da6817e9409bf9741cde31661a5448cb8626067e69d73ca9fb5285d328d71d7
BLAKE2b-256 checksum
How to use checksums
c404e086382181d7d20a0423c1673964522101da299070b9c20b8a1605d8b0ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2025.

Transparency log

Security for pkgman 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pkgman-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page