The ScriptCollection is the place for reusable scripts.
Project description
ScriptCollection
General
The ScriptCollection is the place for reusable scripts.
Reference
The reference can be found here.
Hints
Most of the scripts are written in python 3.
Caution: Before executing any script of this repository read the sourcecode of the script (and the sourcecode of all functions called by this function directly or transitively) carefully and verify that the script does exactly what you want to do and nothing else.
Some functions are not entirely available on windows or require common third-party tools. See the Runtime dependencies-section for more information.
When using ScriptCollection it is not required but recommended for better usability to have epew installed.
Get ScriptCollection
Installation via pip
pip3 install ScriptCollection
See the PyPI-site for ScriptCollection
Download sourcecode using git
You can simply git-clone the ScriptCollection and then use the scripts under the provided license.
git clone https://github.com/anionDev/ScriptCollection.git
It may be more easy to pip-install the ScriptCollection but technically pip is not required. Actually you need to git-clone (or download as zip-file from GitHub the ScriptCollection to use the scripts in this repository which are not written in python.
Troubleshooting
It is recommended to always use only the newest version of the ScriptCollection. If you have an older version: Update it (e. g. using pip3 install ScriptCollection --upgrade
if you installed the ScriptCollection via pip). If you still have problems, then feel free to create an issue.
If you have installed the ScriptCollection as pip-package you can simply check the version using Python with the following commands:
from ScriptCollection.ScriptCollectionCore import ScriptCollectionCore
ScriptCollectionCore.get_scriptcollection_version()
Or you can simply run pip3 freeze
folder to get information about (all) currently installed pip-packages.
Development
Branching-system
This repository applies the GitFlowSimplified-branching-system.
Repository-structure
This repository applies the CommonProjectStructure-branching-system.
Install dependencies
ScriptCollection requires Python 3.10.
To develop ScriptCollection it is obviously required that the following commandline-commands are available on your system:
python
(on some systemspython3
)pip3
The pip-packages which are required for developing on this project are defined in requirements.txt
.
IDE
The recommended IDE for developing ScriptCollection is Visual Studio Code. The recommended addons for developing ScriptCollection with Visual Studio Code are:
Build
To create and install an ScriptCollection locally simply do the following commands:
python ./ScriptCollection/Other/Build/Build.py
pip3 install --force-reinstall ./ScriptCollection/Other/Artifacts/Wheel/ScriptCollection-x.x.x-py3-none-any.whl
(Note: x.x.x
must be replaced by the appropriate version-number.)
Coding style
In this repository pylint will be used to report linting-issues. If you change code in this repository please ensure pylint does not find any issues before creating a pull-request.
If linting-issues exist in the current code-base can be checked by running python ./ScriptCollection/Other/QualityCheck/Linting.py
.
Runtime dependencies
ScriptCollection requires Python 3.10.
The usual Python-dependencies will be installed automagically by pip
.
For functions to to read or change the permissions or the owner of a file the ScriptCollection relies on the functionality of the following tools:
- chmod
- chown
- ls
This tools must be available on the system where the functions should be executed. Meanwhile this tools are also available on Windows but may have a slightly limited functionality.
License
See License.txt for license-information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file ScriptCollection-3.5.30-py3-none-any.whl
.
File metadata
- Download URL: ScriptCollection-3.5.30-py3-none-any.whl
- Upload date:
- Size: 75.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81aa2d43247ecf82e6f4936835d149979b6aefb030e9147dbe0e6370cd96e704 |
|
MD5 | e528944ec43d4230425646bedfa233ec |
|
BLAKE2b-256 | a984b9f1c927b48a3ada7ecbda5425d344f29ff7a3a39a2b46308609d1f47848 |