Skip to main content

This module allows you to check variables types, create new custom types and many others usefull features.

Project description

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
Custom Types :
CType Has arguments Usage
Function NO Function checking (NB: lambda functions types is also function)
Module NO Module checking
Class YES Class checking (is_init=False)
Union YES Value type in *args
File YES File checking (checks if file exists)
Dict YES Better dict checing
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
Errors :
Error Usage
FileExtensionError When file doesn't exists
PatternError When patterns is incorrect

Examples :

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

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

python-avm-0.9.3.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

python_avm-0.9.3-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file python-avm-0.9.3.tar.gz.

File metadata

  • Download URL: python-avm-0.9.3.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for python-avm-0.9.3.tar.gz
Algorithm Hash digest
SHA256 cbb5e6d41cb880c3f9e0688271f6e463353c730f52747870d9a4786b03e1a7cd
MD5 f40d0c6fd6c1ee0a4fe8c096d92f6e0d
BLAKE2b-256 ed55288efc01e28a19017db5cbd7da6b9d04110a408cbc4a6f41edfb7e351912

See more details on using hashes here.

File details

Details for the file python_avm-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: python_avm-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for python_avm-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c2c97157dce87fb77ec9c646ff7edbf44eb1b257572ff731a125a1b7b9c508c
MD5 e357e82b5f492f71c2b3d5e2b07087ce
BLAKE2b-256 97a4567af2228373ee6d166ede4a485d437adb5a3fba3fb75becb8f04c607b24

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