Skip to main content

Advanced Variable Manager: avm

By Grosse pastèque#6705


WARNING :

This modules need some typing modifications ! If you try to run it without these modifications, an Error will occur.

For more informations go Here


Usage :

  • Function's args type checking
  • Function's args fast converting
  • Pattern matching
  • Variable checking
  • More types

Installation :

This module is now disponible on PyPi since version 0.9.1 So you can do python -m pip install python-avm or pip install python-avm

Then you will be able to use it as a module.

import avm

...

Functionnalities :

Functions :
Functions Decorator Usage
type_check YES Check function's args types
convertor YES Convert function's args values
parameters NO Return all arguments of the passed function
str_of YES Return a string vizualisation of the given class
add_ctype YES Adds a custom type to custom_types
length_check YES Check the length `(int: max-lenght, int: max-lenght)
custom_types NO Variable that contains all the Custom Types
tuple_check NO Checks a tuple, used for avm.Union
cisinstance NO Python isinstance but supports custom types
is_type_tuple NO Checks if the given argument is a tuple of types or custom types
is_length NO Checks if the given argument is a lenght `int
exp_check NO Checks the result of an expression, (like True is valid)
Custom Types :
CType Has arguments Usage
Generator NO Generator checking
Function NO Function checking (NB: lambda functions type is also function)
Method NO Methods checking
Module NO Module checking
BRange YES Better range and checking
Length YES Container length checking
Class YES Class checking (is_init=False)
Union YES Value type in *args
Float YES Better float checking
File YES File checking (checks if file exists)
Dict YES Better dict checking
Int YES Better int checking
Str YES Better str checking
Important Features :
Function Usage
Pattern Check a variable for the given pattern (uses recursions)
CType Used as parent for new custom types

Examples :

I have created three examples to help you understand a bit more if you want. In Here.

Metadata

Release files for python-avm 0.9.8

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

Source distribution (sdist)

Source distribution for python-avm 0.9.8
File Size Uploaded
python-avm-0.9.8.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-avm 0.9.8
File Interpreter ABI Platform
python_avm-0.9.8-py3-none-any.whl Python 3 none any Details

Total release size: 24.9 kB

Release files / python-avm-0.9.8.tar.gz

Download URL python-avm-0.9.8.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dd13ce6316c786d3e13396f600c26d8b15311d1549568435f5095c852edb11ac
BLAKE2b-256 checksum
How to use checksums
93dbf2bb3dfa1455aacdf0c228fd5d65a69bbce79fa804f2c11db48d0f949aa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.9.0

Release files / python_avm-0.9.8-py3-none-any.whl

Download URL python_avm-0.9.8-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9872543fa453b2ebd5fc79e4f955199b5e1f88d0ac6c16fe6bb78ac45329314
BLAKE2b-256 checksum
How to use checksums
c26db89583469fcb9e54abcec3b12cdb29833eaf76a2683f10a089aff31d98e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.9.8 This release

2 release files

0.9.7

2 release files

0.9.5

2 release files

0.9.3

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

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