Skip to main content

No project description provided

Project description

ValidateFieldData

validateFieldData is a Python library For cleaning up data related to, or to be submitted in form fields.

Installation

Use the package manager pip to install validateData.

pip install validateFieldData

Usage

import validateFieldData as mp


# text = '   Hola   '
mp.validateField(text)
# returns 'Hola'

# username =  ' Dark Sider12 '
mp.validateField(username, capitalization = 'lowercase', spaces =True)
# returns 'darksider12'

# username =  ' Dark Sider12 '
mp.validateField(username, capitalization = 'lowercase')
# returns 'dark sider12'

# username =  ' Dark Sider12 '
mp.validateField(username, spaces =True)
# returns 'DarkSider12'

# first_name =  ' Dark Sider12 '
mp.validateField(first_name,capitalization = 'uppercase')
# returns 'DARK SIDER12'

# work_email = 'nologin@gmail'
mp.validateField(work_email, email = True)
# returns 'EL correo no es valido '

# comments = '   Este texto tiene menos de 300 caracteres    '
mp.validateField(comments,length =300)
# returns 'Este texto tiene menos de 300 caracteres'

# ID_number = ' 1064 78923 '
mp.validateField(ID_number, document = True)
# returns '1064578923'

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

validateFieldData-0.4.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

validateFieldData-0.4.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file validateFieldData-0.4.1.tar.gz.

File metadata

  • Download URL: validateFieldData-0.4.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.6

File hashes

Hashes for validateFieldData-0.4.1.tar.gz
Algorithm Hash digest
SHA256 eb7406a56df40c3434924e410f0bfaae87adc13430ed3f9a1771e629c902e329
MD5 ace2dced119017d8d3c34505a6081220
BLAKE2b-256 048c6d1e5dd3b7eb0c5b1f8433c3adb12a1f3b7e35cd0479884118a83c9112b8

See more details on using hashes here.

File details

Details for the file validateFieldData-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for validateFieldData-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b424a6549f97422b88aa00eaddac1e20e65af94fa2c392c042b292fd2c5f0218
MD5 5d92ff0744f1fd7423274b176d3b05e7
BLAKE2b-256 792c1dc33210e4170a381d2b13d0e96444630b1c5117b883d66062607a547c7e

See more details on using hashes here.

Supported by

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