Skip to main content

"Module principal du cadriciel Scrippy"

Project description

Build Status License Language

Scrippy, my scrangourou friend

scrippy_core

scrippy_core is the main Python3 module of the Scrippy framework for the normalization of Python scripts writing.

This module provides all the basic functionalities such as configuration file management, log and execution history management, script access control, concurrent execution management, etc.

Prerequisites

System

Debian and derivatives

  • python3
  • python3-pip
  • python-dev
  • build-essential

Python modules

List of required modules

The modules listed below will be installed automatically.

  • prettytable
  • coloredlogs
  • argcomplete
  • filelock

Installation

Manual

git clone https://codeberg.org/scrippy/scrippy-core.git
cd scrippy-core
python -m pip install -r requirements.txt
make install

With pip

sudo pip install scrippy-core

Complete Scrippy framework installation and configuration

The Scrippy framework and all its packages can be installed with the Scrippy installer and configuration helper.

pip install scrippy
scrippy install

The commands listed above will install the Scrippy scripting framework with default values in the user home directory.

Environment configuration details

At the start of each script, Scrippy looks for its global configuration file at the following locations in the following order:

  1. /etc/scrippy/scrippy.yml, allows package managers to provide a default Scrippy configuration (i.e: vendor config)
  2. ~/.config/scrippy/scrippy.yml, allows users to configure Scrippy without requiring administrator permissions
  3. /usr/local/etc/scrippy/scrippy.yml, allows the system administrator to configure Scrippy.

When multiple configuration files exist within the same system, the configuration files are merged so that a user can override a default configuration without being able to override a configuration set up by the system administrator.

The Scrippy configuration file must define a number of directories that will be useful to scripts based on Scrippy.

Key Purpose Associated variable
env::logdir Directory of execution logs of scripts based on Scrippy scrippy_core.SCRIPPY_LOGDIR
env::histdir Directory of execution history files scrippy_core.SCRIPPY_HISTDIR
env::reportdir Directory of report files scrippy_core.SCRIPPY_REPORTDIR
env::tmpdir Temporary directory for scripts based on Scrippy scrippy_core.SCRIPPY_TMPDIR
env::templatedirdir Directory of template files scrippy_core.SCRIPPY_TEMPLATEDIR
env::confdir Directory of configuration files for scripts based on Scrippy scrippy_core.SCRIPPY_CONFDIR
env::datadir Directory of data used by scripts based on Scrippy scrippy_core.SCRIPPY_DATADIR

Model of Scrippy execution environment configuration file:

env:
  logdir: /var/log/scrippy
  histdir: /var/scrippy/hist
  reportdir: /var/scrippy/reports
  tmpdir: /var/tmp/scrippy
  datadir: /var/scrippy/data
  templatedir: /var/scrippy/templates
  confdir: /usr/local/etc/scrippy/conf
  1. Creation of the directories defined in the configuration file /usr/local/etc/scrippy/scrippy.yml

Python script to create the necessary directories:

import os
import yaml

conf_file = "/usr/local/etc/scrippy/scrippy.yml"
with open(conf_file, "r") as conf:
  scrippy_conf = yaml.load(conf, Loader=yaml.FullLoader)
  for rep in scrippy_conf["env"]:
    os.makedirs(scrippy_conf["env"][rep], 0o0775)

Enabling auto-completion (optional)

If your shell has the whence command, the argument parser (argparse) can be used to supply auto-completion. See argcomplete's documentation.

To activate it, launch the following command (installed with the argcomplete Python module):

sudo activate-global-python-argcomplete

Refresh your Bash environment.

source /etc/profile

Formalism

Scripts using the scrippy_core module must follow a certain formalism in order to ensure standardization of their format while facilitating the implementation of certain advanced functionalities such as the control of the validity of the configuration or the management of optional parameters.

Thus each script must include in its doc string a declarative header and a set of predefined sections.

A main() function must:

  • Be defined in the Definition of functions and classes section
  • Be called in the Entry point section
  • Directly enclose its contents by with scrippy_core.ScriptContext(__file__, workspace=True) as _context: which manages and activates all the functionalities of scripts written from the scrippy_core module.
def main():
  with scrippy_core.ScriptContext(__file__, workspace=True) as _context:
    # Main code

if __name__ == '__main__':
  # Manage arguments if any
  main()

Basic model

The basic model below can be used as a code snippet:

#!/bin/env python3
"""
--------------------------------------------------------------------------------
  @author         : <Author>
  @date           : <Date of current script version>
  @version        : <X.Y.Z>
  @description    : <Brief description (one line) of the utility of the script>

--------------------------------------------------------------------------------
  Update:
  <X.Y.Z>  <Date> - <Author> - <Reason>: <Description of update>

--------------------------------------------------------------------------------
  List of authorized users or group:
    @user:<username>
    @group:<group name>

--------------------------------------------------------------------------------
  Concurrent executions:
    @max_instance: <INT>
    @timeout: <INT>
    @exit_on_wait: <BOOL>
    @exit_on_timeout: <BOOL>

--------------------------------------------------------------------------------
  List of mandatory configuration parameters:
    @conf:<section>|<key>|<type>|<secret>

--------------------------------------------------------------------------------
  List of execution options and argument parameters:
    @args:<name>|<type>|<help>|<number of arguments>|<default value>|<conflicts>|<implies>|<required>|<secret>

--------------------------------------------------------------------------------
  Functioning:
  ---------------
    <Detailed description of the script>
...
"""
#-------------------------------------------------------------------------------
#  Initialization of the environment
#-------------------------------------------------------------------------------
import logging
import scrippy_core

#-------------------------------------------------------------------------------
#  Definition of functions and classes
#-------------------------------------------------------------------------------

class <Class>(<object>):
  def __init__(self, [<param>, ...]):
  [...]

def <function>([<param>, ...]):
  [...]

#-------------------------------------------------------------------------------
#  Main processing
#-------------------------------------------------------------------------------

def main(args):
  with scrippy_core.ScriptContext(__file__, workspace=True) as _context:
    # Retrieve config if necessary
    config = _context.config

    [...]

#-------------------------------------------------------------------------------
#  Entry point
#-------------------------------------------------------------------------------

if __name__ == '__main__':
  # Manage arguments if any. Arguments are accessible with the variable 'scrippy_core.args'
  main(scrippy_core.args)

Header elements

The author, date, version, description elements are mandatory and will be automatically displayed by the --help option.

Version

A script's version number is in the format X.Y.Z with:

  • X, the major version identifier
  • Y is the minor version identifier
  • Z, the correction version identifier

Major version X: It is worth "0" during development, the script is considered invalid and should not be called by other scripts or used in production.

Once the script is validated, the version should be 1.0.0 (first stable version).

X should be incremented if changes in the code no longer guarantee backward compatibility.

The minor version identifiers Y and the correction version identifiers Z must be reset to zero when the major version identifier X is incremented.

Minor version Y: Must be incremented when adding new functionalities or improving the code that has no impact on backward compatibility.

The correction version identifier Z must be reset to zero when the minor version identifier is incremented.

Correction version Z: Must be incremented if only retro-compatible corrections are introduced.

A correction is defined as an internal change that corrects incorrect behavior (Bug).

Z can be incremented for typographical or grammatical correction.

Update:

In addition to the version number, modification date, and modification author, each line of the script history must indicate the reason for the modification.

<Reason> can take one of the following values:

  • cre: Script creation
  • evo: Script evolution (adding functionality, improving code, etc.)
  • bugfix: Correction of unexpected behavior (bug)
  • typo: Typo correction, adding comments, and any action that does not modify the code.

Authorized Users and Groups

The scrippy_core module adds a verification layer to the script execution to ensure that a script is executed by a specific user or a user belonging to a specific group.

Placed in the header, a line such as @user:harry.fink will prevent execution by any user other than harry.fink.

It is possible to define several authorized users by multiplying the declarations:

@user:harry.fink
@user:luiggi.vercotti

It is also possible to authorize groups of users with a line such as @group:monty which ensures that only a user from the monty group executes the script.

In the same way as for users, it is possible to multiply group declarations:

@group:monty
@group:python

In the absence of @user and @group declarative lines, file permissions take precedence, and in all cases, file permissions have priority.

Attention: If a group and a user are declared, both conditions must be met for the user to be authorized to execute the script.

Management of Concurrent Executions

The optional declarations @max_instance, @timeout, @exit_on_wait, and @exit_on_timeout make it possible to define the number of concurrent executions of the same script as well as the behavior of the script if necessary:

Declaration Type Utility Default value
@max_instance Integer Maximum number of parallel executions 0 (infinite)
@timeout Integer Maximum waiting time expressed in seconds if @exit_on_timeout is set to true 0 (infinite)
@exit_on_timeout Boolean (true, 1, on) Exits the script with an error when the waiting time is reached False
@exit_on_wait Boolean (true, 1, on) Immediately exits the script with an error in case of waiting, even if the waiting time is not reached False

The waiting occurrences are executed sequentially in the order in which they are recorded in the execution queue.

In the following example, two occurrences of the script are allowed. A third execution will be put on hold for 10 seconds, after which the script will exit with an error if it cannot obtain a execution slot.

  @max_instance: 2
  @timeout: 10
  @exit_on_wait: false
  @exit_on_timeout: true

Management and Verification of Mandatory Configuration Parameters

A configuration file is a simple ini file divided into as many sections as necessary:

To be loaded, such a configuration file must simply be located in the directory defined by the scrippy_core.SCRIPPY_CONFDIR constant and have the same name as the script that must load it, stripped of its extension and suffixed with the .conf extension.

In this way, the script exp_test_logs.py will automatically load the configuration file exp_test_logs.conf.

[log]
level = ERROR
[database]
host = srv.flying.circus
port = 5432
user = arthur.pewtey
base = ministry_of_silly_walks
password = parrot
# The section has spaces
[my section]
  # an indented comment
  my variable = my value

In such a file:

  • Indentation is possible
  • A line beginning with # or ; is considered a comment, even if it is indented.
  • All values are strings:
    • It is up to the developer to convert the variable value to the desired type during processing (see Retrieving a Value of a Particular Type).
    • Spaces are accepted in the section name, key name, or value.

Validating the configuration file

In order to validate the configuration file, the script must contain in its docstring a set of lines starting with @conf and describing the configuration file as expected.

The declaration lines of the configuration format must respect the following format:

@conf:<section>|<key>|<value_type>[|<secret>]

<value_type> must be one of the following recognized types:

  • str (string of characters)
  • int (integer)
  • float (floating point number)
  • bool (boolean)

secret is optional and if defined, must have the value true or false.

If secret is defined and has the value true, the configuration parameter value will be considered a secret and will be redacted in the logging files.

Example:

From the following declaration:

@conf:log|level|str
@conf:database|port|int
@conf:sql|verbose|boolean
@conf:sql|database|str|false
@conf:sql|password|str|true

The following configuration file will be checked:

[log]
  level = error
[database]
  port = 5432
[sql]
  verbose = True
  database = monty
  password = d34dp4rr0t

All occurrences of the password d34dp4rr0t will be replaced by ******* in the logging files and on the standard output.

No control over the values of the parameters is performed, so there is no need to indicate them. Only the structure of the configuration and the type of the keys are checked.

During the configuration check and if the logging level is set to debug, the loaded configuration will be displayed on the standard output and in the log (beware of the presence of passwords in the configuration when using the debug logging level).

"""
@conf:database|port|int
@conf:database|base|str
@conf:database|host|str
@conf:database|password|str
@conf:database|user|str
@conf:local|dir|str
@conf:src|port|int
@conf:src|host|str
@conf:src|dir|str
@conf:src|user|str
@conf:dst|port|int
@conf:dst|host|str
@conf:dst|dir|str
@conf:dst|user|str
"""
import scrippy_core

with scrippy_core.ScriptContext(__file__, workspace=True) as _context:
  # retrieving the configuration
  config = _context.config

If one of the sections or keys described by @conf is absent from the configuration file or if the type described for a key does not match the type found in the configuration file for that key, a critical error is raised and the script immediately exits with an error.

Extra sections or keys found in the configuration file that are not declared will simply be ignored during validation but will remain usable by the script.

Thus in the above example, the [mail] section not being defined in @conf neither its presence nor its validity will be checked.

Retrieving a configuration parameter value

Retrieving a parameter value from the configuration file is done through the _context.config.get() method.

"""
@conf:database|port|int
@conf:database|base|str
@conf:database|host|str
@conf:database|password|str
@conf:database|user|str
"""
import logging
import scrippy_core

with scrippy_core.ScriptContext(__file__, workspace=True) as _context:
  config = _context.config
  logging.info(config.get('database', 'host'))

In the above example, the value of the host key in the database section will be displayed on the screen.

If the section or key does not exist, an error is raised and the script will immediately raise a critical error.

Retrieving a value of a particular type

Unless the 'param_type' parameter is set to one of the authorized values (str (default), int, float or bool), the returned type is always a string.

Calling the Config.get() method with the wrong type will raise an error and the script will immediately raise a critical error.

"""
@conf:log|level|str
@conf:database|port|int
@conf:database|base|str
@conf:database|host|str
@conf:database|password|str
@conf:database|user|str
"""
import logging
import scrippy_core

with scrippy_core.ScriptContext(__file__, workspace=True) as _context:
  config = _context.config
  logging.info(config.get('database', 'port', 'int'))

Reserved Sections and Keys:

Some sections and keys are automatically read and interpreted during the import of the scrippy_core module.

These configuration keys are optional, just like the configuration file.

  • Log level, read and applied automatically:
[log]
  level = <str>
  • Activation of logging and history (True by default):
[log]
  file = <bool>

More details in the Runtime Logging Management section.

Examples

All examples in this documentation are based on all or part of the following configuration file:

[log]
  level = info
  file = true
[database]
  host = srv.flying.circus
  port = 5432
  user = arthur.pewtey
  base = ministry_of_silly_walks
  password = dead parrot
[local]
  dir = /tmp/transfert
[src]
  host = srv.source.circus
  port = 22
  user = harry.fink
  dir = /home/harry.fink/data
[dst]
  host = srv.destination.circus
  port = 22
  user = luigi.vercotti
  dir = /home/luigi.vercotti/received
[mail]
  host = srv.mail.circus
  port = 25
  from = Luiggi Vercotti
  from_addr = luiggi.vercotti@circus.com
  to = Harry Fink
  to_addr = harry.fink@circus.com
  subject =  Execution Report

Execution options management

Script options can be managed through declarations in the docstring.

The declaration of an option is composed of 8 fields, some of which are required:

@args:<name>|<type>|<help>|<number of arguments>|<default value>|<conflicts>|<implies>|<required>|<secret>

with:

  • name: The name of the option (required)
  • type: One of the following values: str, int, float, choice, bool (default: str). If the type is choice, the list of possible choices must be entered in the default value field as a list of words separated by commas.
  • help: A string summarising the purpose of this option (required).
  • number of arguments: The number of arguments taken by the option. This field is mandatory for all types except bool, where the declared number of arguments is ignored. Its value is usually an integer but can take the value + when the number of arguments is greater than 1 but is not known in advance, or ? when the number of arguments can be equal to zero.
  • default value: The default value of the option (optional). true is the default value for bool options.
  • conflictx: The list of options that conflict with the current option (optional, list of options separated by commas).
  • implies: The list of options induced by the current option (optional, list of options separated by commas).
  • required: A Boolean (true or false) indicating whether the option is mandatory or not.
  • secret: A Boolean (true or false) indicating whether the option value should be kept secret.

The value of an option whose secret attribute is set to true will be automatically masked in log files as well as in standard output.

The declaration of the options will automatically generate the help of the script accessible with the --help option.

The following options will also be automatically generated:

  • --version: Displays the script version number from the information contained in the header.
  • --source-code: Displays the source code of the script.
  • --hist [NB_EXECUTION (default:10)]: Displays the execution history of the script.
  • --log [SESSION]: Displays the content of the log file corresponding to the session whose identifier is passed as an argument. By default, the latest session is displayed.
  • --debug: Forces the logging level to DEBUG (Changes in log level during execution are then ignored).
  • --nolog: Totally disable logging except for error and critical log levels.
  • --no-log-file: Prevents the creation of log and history files.

The --help, --version, --hist, --log, --debug and --no-log-file options should not be declared.

Examples

The following script can be called with the following options and arguments:

  • --env: Mandatory. Accepts one of the following values: qualif, preprod or prod
  • --appname: Optional. A free string with a default value of "aviva"
  • --now: Boolean option. If used, its value will be true (false by default) and the --date option cannot be used.
  • --date: A sequence of 3 integers from which a date will be created (i.e. 24 02 2019). This option conflicts with the --now option.
  • --email: A free string. This option is mandatory if the --now option is used.
#!/bin/env python3
"""
--------------------------------------------------------------------------------
  @author         : Florent Chevalier
  @date           : 2019-07-27
  @version        : 1.0.0
  @description    : test des options

--------------------------------------------------------------------------------
  Update :
  1.0.0  2019-07-27   - Florent Chevalier   - Cre : Production
--------------------------------------------------------------------------------
  Authorized users and groups:
    @user:asr
    @group:asr
--------------------------------------------------------------------------------
  Liste des paramètres des options et arguments d'exécution:
    name|type|help|num_args|default|conflicts|implies|required

    @args:appname|str|Application name|1|aviva|||false
    @args:date|int|Planning date(day, month, year)|3||now|email|false
    @args:email|str|Notification email address|1||||false
    @args:now|bool|Apply immediately||false|date||false
    @args:env|choice|Environnement||dev,staging,prod|||true
--------------------------------------------------------------------------------
"""
import logging
import datetime
import scrippy_core

def print_contact(email):
  logging.info(" - Contact: {}".format(email))

def print_appname(appname):
  logging.info(" - Application: {}".format(appname))

def print_env(env):
  logging.info(" - Environnement: {}".format(env))

def print_date(date):
  logging.info(" - Date: {}".format(date))

def main(args):
  with scrippy_core.ScriptContext(__file__, workspace=True) as _context:
    if args.date:
      date = "{}/{}/{}".format(args.date[0], args.date[1], args.date[2])
    if args.now:
      date = datetime.datetime.now().strftime('%d/%m/%Y')
    logging.info("[+] Report:")
    print_date(date)
    print_appname(args.appname)
    print_env(args.env)
    print_contact(args.email)

if __name__ == '__main__':
  main(scrippy_core.args)

Execution log management

Execution logging is done using the logging module of the standard library.

Two types of logs are simultaneously available:

  • Standard output: Colored display towards sys.stdout
  • Log file: A file located in scrippy_core.SCRIPPY_LOGDIR whose name is extrapolated from the name of the script as follows: <script_name>_<timestamp>_<pid>.log.

Several levels of logging are available (See the documentation) and the default log level is INFO.

If a configuration file exists for the script and it contains a [log] section indicating a log level with the level key, then the indicated log level is automatically applied.

If the configuration file contains a [log] section with a file key whose value is false, then no log file will be created and only standard output will receive the logs.

Defining the log level through the configuration file:

[log]
  level = warning

The value of the log level in the configuration file is case-insensitive.

The available log levels, from least verbose to most verbose, are the logging levels of the standard logging module

  • critical
  • error
  • warning
  • info
  • debug

Note that the DEBUG log level displays the entire configuration file as well as other details that could prove to be a source of information leakage. It is not recommended to use it in production.

All scripts written using the scrippy_core module according to the rules of the art have the following logging options:

  • --no-log-file: When this option is used, no execution log is recorded on disk. This option does not prevent output on the screen.
  • --debug: When this option is used, the log level is forced to DEBUG. In this case, the script does not take into account a possible configuration parameter indicating the opposite.

These two options can be combined.

Changing the log level:

The log level can be changed during script execution using the method logging.getLogger().setLevel(<LEVEL>)

Example

In addition to naturally accepting a configuration parameter defining the log level, the following script has a --loglevel option that allows overriding the log level at runtime.

If the --debug option is used, the --loglevel option will have no effect.

"""
@args:loglevel|str|The log level|1||||false
"""
import logging
import scrippy_core

def change_loglevel(level):
  """
  Sets the log level to <level>
  """
  try:
    logging.getLogger().setLevel(level.upper())
  except ValueError:
    logging.error("Unknown log level: {}".format(level.upper()))

def main(args):
  with scrippy_core.ScriptContext(__file__, workspace=True) as _context:
    # get script configuration
    config = _context.config
    if args.loglevel:
      # The --loglevel option received an argument
      change_loglevel(args.loglevel)
    logging.debug("Nobody expects the Spanish Inquisition!")
    logging.info("And now for something completely different...")
    logging.error("It’s not pinin’! It’s passed on! This parrot is no more!")

if __name__ == '__main__':
  main(scrippy_core.args)

Error management

The with scrippy_core.ScriptContext(__file__) as _context: wrapper intercepts exceptions to display only the type and message without the stack trace.

In case of an intercepted exception, the framework triggers a sys.exit(1).

To display the stack trace, the log level must be set to DEBUG.

Management of execution history

The execution history file located in scrippy_core.SCRIPPY_HISTDIR will be created and named <script_name>.db at the first script execution.

This file is an sqlite3 database that lists all executions of a script and for each execution the following information:

  • session identifier
  • Start date of the execution
  • End date of the execution
  • Duration of the execution
  • User who initiated the execution
  • User who actually ran the script (in case of sudo)
  • Return code of the execution (0 if Ok, other value if KO)
  • Set of parameters passed as arguments to the script
  • Name of the error if the execution did not end correctly (0 otherwise)

If the history file already exists at execution time, it will be updated with the parameters of the new execution.

History is automatically enabled by enclosing the call to the main function with the declaration with scrippy_core.ScriptContext(__file__, workspace=True) as _context:

with scrippy_core.ScriptContext(__file__, workspace=True) as _context:
  main()

Each script execution is assigned a session allowing each execution to be uniquely identified.

This session is composed of:

  • a timestamp representing the execution time
  • the process identifier (PID)
1568975414.6954327_10580

This session identifier is reported in the Session column of the history and allows the corresponding log to be found (See the --log option in Execution options management).

Retention

The number of executions kept in the history file is 50 by default.

It is possible to override this value by specifying the desired retention number using the declaration with scrippy_core.ScriptContext(__file__, retention=100) as _context:

with scrippy_core.ScriptContext(__file__, workspace=True, retention=100) as _context:
  main()

Displaying execution history

All scripts based on the scrippy_core module have an --hist option that allows you to display the last executions.

exp_test_script.py --hist

The number of executions to display can be specified by passing an integer parameter to the --hist option.

exp_test_script.py --hist 2

For each script execution, the execution history records the following information:

  • The execution date
  • The original user
  • The effective user (sudo)
  • The unique session identifier
  • The exit code (0 by default)
  • The list of options and arguments passed to the script

Temporary workspace

The declaration with scrippy_core.ScriptContext(__file__, workspace=True) as _context: automatically creates a temporary workspace whose path can be obtained using the workspace_path attribute of the execution context _context.

with scrippy_core.ScriptContext(__file__, workspace=True) as _context:
  workspace_path = _context.workspace_path
  ...

In the previous example, the workspace_path variable will contain the path to the temporary working directory, whose name will be constructed as follows: scrippy_core.SCRIPPY_TMPDIR/<SCRIPT NAME>_<SESSION ID>

Example:

/var/tmp/scrippy/exp_transfert_ftp_1574391960.6696503_102257

This temporary workspace, which will be automatically destroyed with its contents at the end of the script, is a directory that can be used to create files.

#!/bin/env python3
import logging
import scrippy_core

def create_file(workspace_path):
  tmp_file = "fichier.tmp"
  logging.info("[+] Creating temporary file: {}".format(os.path.join(workspace_path, tmp_file)))
  with open(os.path.join(workspace_path, tmp_file), 'a') as tmpfile:
    logging.info("[+] Writing in temporary file")
    tmpfile.write("Nobody expects the Spanish inquisition !")

def main(args):
  with scrippy_core.ScriptContext(__file__, workspace=True) as _context:
    config = _context.config
    create_file(_context.workspace_path)

if __name__ == '__main__':
  main(scrippy_core.args)

Tips and guidelines

  • A log is never too verbose
  • Use multiple log levels to separate what is useful for operation from what is useful for debugging
  • Priority should be given to readability and maintainability rather than compactness and technicality
  • Break down the code into small functions
  • Each function should log its entry point and where possible, the parameters it receives
  • Maximize variable naming and transfer as many variables as possible to the configuration file or run-time options (no hard coded values)
  • Simplify the main algorithm of the program to its simplest expression
  • Handle errors as finely as possible and as close as possible
  • Minimize global variables
  • Minimize information leaks in log files by using the secret attributes of options and arguments whose values are sensitive information (login, password, connection server, etc.)
  • Create a main() function containing the script's main algorithm
  • Create the environment (objects and variables used at the global level) in the Entry point section.

Additional modules

The Scrippy framework, of which scrippy-core is the core, has modules that facilitate the writing of advanced Python scripts in accordance with Scrippy's basic principles.

Module Utility
scrippy-template Template file management (based on Jinja2)
scrippy-remote Implementation of SSH/SFTP and FTP protocols
scrippy-mail Implementation of SMTP, POP and Spamassassin protocols
scrippy-git Git repository management
scrippy-db Database management (PostgreSQL and Oracle)
scrippy-api Using REST API (based on resquets)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrippy-core-1.3.16.tar.gz (49.3 kB view details)

Uploaded Source

Built Distribution

scrippy_core-1.3.16-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file scrippy-core-1.3.16.tar.gz.

File metadata

  • Download URL: scrippy-core-1.3.16.tar.gz
  • Upload date:
  • Size: 49.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for scrippy-core-1.3.16.tar.gz
Algorithm Hash digest
SHA256 2a54bb88ca2ad48cbbc6d32f46e93a7e752ca6b3f08c0cb628a73344015bb983
MD5 6e3820a0116703ff1100073e7cc2f274
BLAKE2b-256 1dfe5474c6f6b369381cb1ad929a0a2cff05d97e6823aab9cbf8bdf335605eb7

See more details on using hashes here.

File details

Details for the file scrippy_core-1.3.16-py3-none-any.whl.

File metadata

File hashes

Hashes for scrippy_core-1.3.16-py3-none-any.whl
Algorithm Hash digest
SHA256 0748b5f5952f26cd9736f3ffaeb2cc63fd4f949b4832d414f81e5c362c897f27
MD5 92b924521c46910c9c6c6a71f49b45bf
BLAKE2b-256 b6f57836f8e3509aa862a11a03ebc8daa43bef199dc0332957d34c8d3b7127df

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page