# 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](https://github.com/GlobalCreativeApkDev/gemini-pro-class-generator/blob/master/main.py).
# Installation
```
pip install gemini-pro-class-generator
```
# How to Use the Application?
Pre-requisites:
1. [Python](https://www.python.org/downloads/) 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.

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.

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.

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

Raw data
{
"_id": null,
"home_page": "https://github.com/GlobalCreativeApkDev/gemini-pro-class-generator",
"name": "gemini-pro-class-generator",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "GlobalCreativeApkDev",
"author_email": "globalcreativeapkdev2022@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a8/a9/826a268fa41fa0ee31194696af8a9aa4df15638cc5667568b2f860f8ec4e/gemini-pro-class-generator-1.tar.gz",
"platform": null,
"description": "# gemini-pro-class-generator\n\nEven wondered about generating classes with their attributes and methods without manually writing hundreds of \nlines of code? **Gemini Pro Class Generator** is the tool to do so. This tool generates code for a class in a \nprogramming language of your choice based on the given specifications.\n\n# Source Code\n\nThe source code of the application **Gemini Pro Class Generator** is available in \n[Source Code](https://github.com/GlobalCreativeApkDev/gemini-pro-class-generator/blob/master/main.py).\n\n# Installation\n\n```\npip install gemini-pro-class-generator\n```\n\n# How to Use the Application?\n\nPre-requisites:\n\n1. [Python](https://www.python.org/downloads/) installed in your device.\n2. .env file in the same directory as <GEMINI_PRO_CLASS_GENERATOR_DIRECTORY> and has the value of GEMINI_API_KEY.\n\nFirst, open a Terminal or Command Prompt window and run the following command.\n\n```\ncd <GEMINI_PRO_CLASS_GENERATOR_DIRECTORY>\npython3 main.py\n```\n\n**Note:** Replace <GEMINI_PRO_CLASS_GENERATOR_DIRECTORY> with the path to the directory of the application\n**Gemini Pro Class Generator**.\n\nThen, the application will start with something looking like in the screenshot below.\n\n\n\nYou will then be asked to input the following values.\n\n1. Temperature - between 0 and 1 inclusive\n2. Top P - between 0 and 1 inclusive\n3. Top K - at least 1\n4. Max output tokens - at least 1\n\nThe following screenshot shows what is displayed after inputting the mentioned values.\n\n\n\nYou will be required to input the following pieces of information.\n\n1. The name of the programming language you want to create a class in.\n2. The name of the class you want to create.\n3. The number of attributes you want to include in the class.\n4. Name and description of each class attribute.\n5. The number of methods you want to include in the class.\n6. Name and description of each class method.\n\nOnce you enter the values mentioned above, the file containing the code will be created inside \"classes\" directory.\nThen, you will be asked whether you still want to continue unit testing or not. If you enter 'Y', \nyou will be redirected to an application window like in screenshot above. Else, you will exit the application.\n\n\n\nBelow demonstrates how a class generated by the application looks like.\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "This package contains implementation of an application to generate classes of any programming language, with Gemini Pro integrated into it.",
"version": "1",
"project_urls": {
"Homepage": "https://github.com/GlobalCreativeApkDev/gemini-pro-class-generator"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d3b1fcd16115078ede9210f681b15a7c22dc31e13c3e5a4c51988f4d498b331e",
"md5": "8d2dc450cc2aa451fbe5992386bdaf72",
"sha256": "51572e8b6bb6ad9fc290bf98c89d867fdad31c44174b18e7a2055ecbee075bc9"
},
"downloads": -1,
"filename": "gemini_pro_class_generator-1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8d2dc450cc2aa451fbe5992386bdaf72",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3457,
"upload_time": "2024-01-03T10:02:35",
"upload_time_iso_8601": "2024-01-03T10:02:35.935456Z",
"url": "https://files.pythonhosted.org/packages/d3/b1/fcd16115078ede9210f681b15a7c22dc31e13c3e5a4c51988f4d498b331e/gemini_pro_class_generator-1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a8a9826a268fa41fa0ee31194696af8a9aa4df15638cc5667568b2f860f8ec4e",
"md5": "d956b00b3b41132970329b1bf4f0821c",
"sha256": "0e986d320043db6df189239404e2eced9acaa66c6eb6dbab2bed908f2749b76f"
},
"downloads": -1,
"filename": "gemini-pro-class-generator-1.tar.gz",
"has_sig": false,
"md5_digest": "d956b00b3b41132970329b1bf4f0821c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3128,
"upload_time": "2024-01-03T10:02:37",
"upload_time_iso_8601": "2024-01-03T10:02:37.831186Z",
"url": "https://files.pythonhosted.org/packages/a8/a9/826a268fa41fa0ee31194696af8a9aa4df15638cc5667568b2f860f8ec4e/gemini-pro-class-generator-1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-03 10:02:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "GlobalCreativeApkDev",
"github_project": "gemini-pro-class-generator",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "gemini-pro-class-generator"
}