Skip to main content

Generador de clases en python

Project description

classGenerator

This is a package that helps to generate classes in an easy and fast way

Installation

Install the package with pip

  pip install classGenerator

Variables Reference

Parameter Type Description
nombreArchivo string Required. It is the name of the file where the class will be added. If the file does not exist, it will be generated with that name
nombreClase string Required. It is the name with which the class will be generated
variables string Required. They are the variables that the class will have
GettersAndSetters bool If this parameter is not specified, the default will be False. Set True to generate the getters and setters in case you don't want them to set False
direccion string If this parameter is not specified, the file will be generated on the desktop. Put the address where you want to generate the file

Usage/Examples

Estructure

from classGenerator.generateClass import createClass

createClass(nombreArchivo, nombreClase, variables, False, direccion)

Example 1

It will create a class on the desktop without getters and setters

from classGenerator.generateClass import createClass

createClass("People", "Person", "first_name, last_name, email, address")

Example 2

It will create a class on the desktop with getters and setters

from classGenerator.generateClass import createClass

createClass("People", "Person", "first_name, last_name, email, address", True)

Example 3

It will create a class at a specific address without getters and setters

from classGenerator.generateClass import createClass

createClass("People", "Person", "first_name, last_name, email, address", False, "c:\\Users\user\Desktop")

Screenshots

carbon

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

classGenerator-0.0.2.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file classGenerator-0.0.2.tar.gz.

File metadata

  • Download URL: classGenerator-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for classGenerator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 690178face74643f9e5f58a56067ba07e7388c40d2be78c2ee1da66e59c8e490
MD5 6569eb2f146cb97e370928cc453bed1b
BLAKE2b-256 506f12235e36f075af92e7258d4f210cbfe53a725fa67409ea72b7b47347c0f6

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