Lithio - Python clone of GNU install
Lithio is a Python clone of the GNU install command, designed to provide a safe, flexible, and cross-platform solution for installing files and managing file permissions in various environments.
Installation
To install, run (be aware of what the install.sh script does):
bash install.sh
Note: The
install.shscript sets up the package and installs necessary dependencies. Review the script before running it to understand what actions it performs.
To install files:
Once installed, you can use lithio to install files:
lithio file1 file2 /path/to/destination
This will copy file1 and file2 to the specified destination directory.
Note: If you used
install.shto install the package, you can install files that require elevated privilegessudo -E lithio
To install files with sudo:
sudo -E lithio file1 file2 /path/to/destination
The -E flag preserves the user's environment, which is useful when running the command with sudo.
Features
- Simple command-line usage: Install files with ease and flexibility.
- Checksum validation: You can validate file integrity using the
--checksum <checksum_file>option with--checksum-type. The<checksum_file>should contain a list of file names and their associated hashes in the format<file_name>:<file_hash>\n. - Usability in scripts:
lithiodoes not require any kind of user interaction, making it ideal for automation. - Extendable: Easily adaptable for future functionalities.
- More: More information can be found in the
manpageman lithio
Contributing
Contributions are welcome! If you have suggestions, bug reports, or improvements, please open an issue or submit a pull request.
- Fork the repository
- Create a new branch (`git checkout -b feature-branch`)
- Commit your changes (`git commit -am 'Add new feature'`)
- Push to the branch (`git push origin feature-branch`)
- Create a new pull request
Make sure to add tests and documentation for your changes.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
For questions, you can reach me at voyager-2019@outlook.com.
Acknowledgments
- Inspired by the GNU `install` command
- Thanks to the contributors who helped improve this project!
Metadata
Release files for lithio 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lithio-1.0.3.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lithio-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / lithio-1.0.3.tar.gz
| Download URL | lithio-1.0.3.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa474e98b4d501082cb66f2ac19c4d4dc02f3f209543231a7556b80df4b29076
|
|
BLAKE2b-256 checksum How to use checksums |
0249f903d372a4b5772d4f303effc2e41b763ba7d4e28f7b1a40d3b58856e29d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.24.1 CPython/3.13.3 Linux/6.14.0-15-generic
|
Release files / lithio-1.0.3-py3-none-any.whl
| Download URL | lithio-1.0.3-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bf47e5f4d0d071eb80121e31a13dead2ab7d75686b59c4391dbe2e4ed99d23c
|
|
BLAKE2b-256 checksum How to use checksums |
a4967c84544cf102a4efe3ba96ce78bc564a980b4dcb69a3e433f73ccca12817
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.24.1 CPython/3.13.3 Linux/6.14.0-15-generic
|
Security for lithio 1.0.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.