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 hashes)

Uploaded Source

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