Skip to main content

gemini-pro-class-generator

Even wondered about generating classes with their attributes and methods without manually writing hundreds of lines of code? Gemini Pro Class Generator is the tool to do so. This tool generates code for a class in a programming language of your choice based on the given specifications.

Source Code

The source code of the application Gemini Pro Class Generator is available in Source Code.

Installation

pip install gemini-pro-class-generator

How to Use the Application?

Pre-requisites:

  1. Python installed in your device.
  2. .env file in the same directory as <GEMINI_PRO_CLASS_GENERATOR_DIRECTORY> and has the value of GEMINI_API_KEY.

First, open a Terminal or Command Prompt window and run the following command.

cd <GEMINI_PRO_CLASS_GENERATOR_DIRECTORY>
python3 main.py

Note: Replace <GEMINI_PRO_CLASS_GENERATOR_DIRECTORY> with the path to the directory of the application Gemini Pro Class Generator.

Then, the application will start with something looking like in the screenshot below.

Application

You will then be asked to input the following values.

  1. Temperature - between 0 and 1 inclusive
  2. Top P - between 0 and 1 inclusive
  3. Top K - at least 1
  4. Max output tokens - at least 1

The following screenshot shows what is displayed after inputting the mentioned values.

Code Generator

You will be required to input the following pieces of information.

  1. The name of the programming language you want to create a class in.
  2. The name of the class you want to create.
  3. The number of attributes you want to include in the class.
  4. Name and description of each class attribute.
  5. The number of methods you want to include in the class.
  6. Name and description of each class method.

Once you enter the values mentioned above, the file containing the code will be created inside "classes" directory. Then, you will be asked whether you still want to continue unit testing or not. If you enter 'Y', you will be redirected to an application window like in screenshot above. Else, you will exit the application.

Code Generator End

Below demonstrates how a class generated by the application looks like.

Generated Class

Release files for gemini-pro-class-generator 1

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

Source distribution (sdist)

Source distribution for gemini-pro-class-generator 1
File Size Uploaded
gemini-pro-class-generator-1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gemini-pro-class-generator 1
File Interpreter ABI Platform
gemini_pro_class_generator-1-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / gemini-pro-class-generator-1.tar.gz

Download URL gemini-pro-class-generator-1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0e986d320043db6df189239404e2eced9acaa66c6eb6dbab2bed908f2749b76f
BLAKE2b-256 checksum
How to use checksums
a8a9826a268fa41fa0ee31194696af8a9aa4df15638cc5667568b2f860f8ec4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Release files / gemini_pro_class_generator-1-py3-none-any.whl

Download URL gemini_pro_class_generator-1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51572e8b6bb6ad9fc290bf98c89d867fdad31c44174b18e7a2055ecbee075bc9
BLAKE2b-256 checksum
How to use checksums
d3b1fcd16115078ede9210f681b15a7c22dc31e13c3e5a4c51988f4d498b331e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Release history Release notifications | RSS feed

This release

1 This release

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