Nara


NameNara JSON
Version 0.1.5 PyPI version JSON
download
home_pagehttps://github.com/subh-sk/Nara
SummaryA versatile package for AI-based real-time information and chatbot interactions, creating temporary emails, generating random data, caching, and JSON manipulation.
upload_time2024-05-20 08:53:06
maintainerNara Developers
docs_urlNone
authorSubhash Kumar, Divyansh Shukla, Yateesh Reddy
requires_python>=3.10
licenseMIT
keywords ai templategenerator template generator code generation temp mail ai chat nara nara ai json fakename fakeid
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
<img src="https://raw.githubusercontent.com/subh-sk/Nara/main/Logo/nara.png" width="300">
</h1><br>


# Nara

Nara is a comprehensive Python package designed to streamline various tasks such as creating temporary emails, generating random passwords, IDs, names, and more. It also includes features for caching to enhance response times, modifying JSON structures effortlessly, and integrating multiple AI models for real-time information retrieval and engaging chatbot interactions.


## Key Features

- **Temporary Email Creation**: Easily generate and manage temporary emails for testing and other purposes.
- **Random Data Generation**: Generate random passwords, IDs, names, and other data with customizable options.
- **Caching**: Implement caching mechanisms to store data temporarily and improve performance.
- **JSON Manipulation**: Simplify JSON data modification and handling with built-in utilities.
- **AI Integration**: Access and interact with multiple AI models for real-time information and human-like chatbot conversations.
- **AI Training**: Train and customize AI models to enhance their performance and adaptability.

Whether you are developing applications, automating tasks, or integrating AI-based solutions, Nara provides a robust and flexible toolkit to meet your needs.

## Installation

You can install the package using pip:

```bash
pip install Nara
```

## Usage
- Here is a simple example of how to use Nara:

### Usage with temporary Mail
```py
from Nara.Extra import OnlyMail,MailUrl,MailOtp

# Example usage for generating a temporary email
OnlyMail(Printable=True) #only for generate email

# Example usage for generating a temporary email and get verification link
mail_OBJ = MailUrl(Timeout=20,Printable=True)
print(next(mail_OBJ))
input("wait = ")
url = next(mail_OBJ)
print(url)

# Example usage for generating a temporary email and get verification Code
mail_OBJ = MailOtp(OtpLength=6,Timeout=20,Printable=True)
print(next(mail_OBJ))
input("wait = ")
url = next(mail_OBJ)
print(url)

```

### Usage with json Files
```py
from Nara.Extra import LoadJson,JsonList,JsonDict,LoadTestResults

 #Example usage for create a json file if not exist and save your jason as list formate
JsonList(FileName="data.json", name="Alice", age=30)

└── test.py
└── data.json
data.json : [
                {
                "name": "Alice",
                "age": 30
                }
            ]


#Example usage for create a json file if not exist and save your jason as Dict formate
JsonDict(Key="username", Value="johndoe", FileName="config.json")

└── test.py
└── config.json
config.json : {
                "username": "johndoe"
            }

#Example usage for Load The json file
a = LoadJson(FileName="config.json")
print(a)
> OUTPUT : {'username': 'johndoe'}

```

### Usage For fast Processing

```py
#Example usage for create cache file that will help you to run your cache code in millisecond
from Nara.Extra import CacheManager
a= CacheManager("cache.json")
@a.cache
def b():
    a,b=10,20
    c = 0
    c = a+b
    sleep(5)
    c = c+10
    return a+b
print(b()) #first time it store this function return in chache
print(b()) #it will retrun the function within a millisecond using cahe.json

```

### Usage to Create template code Using AI
```py
from Nara import CreateTemplate

#Example usage for create template code of the provided prompt. like here we give selenium so it will change your file and write code for selenium structure
CreateTemplate("selenium")

└── test.py :  CreateTemplate("selenium")
################## make code for selenium template 👇 ####################
test.py :
from selenium import webdriver
from selenium.webdriver.common.by import By

# Replace with your preferred browser
driver = webdriver.Chrome()  # For Chrome
# driver = webdriver.Firefox()  # For Firefox

def navigate_to_url(url):
    driver.get(url)

def find_element_by_xpath(xpath):
    element = driver.find_element(By.XPATH, xpath)
    return element

def close_browser():
    driver.quit()

# Example usage
url = "https://www.google.com"
navigate_to_url(url)
element = find_element_by_xpath("//input[@name='q']")
print(element.get_attribute("placeholder"))

close_browser()

```

### Usage to Create Function code Using AI
```py

# └── test.py :

from Nara import CreateFunc

def main1():
    print("Don't change this function")

# @CreateFunc()
# def selenium_code_for_flipkart() -> None: #type your reuirements code as function name
    pass

########## OR ###########

#here you can specify your question in doc string.
@CreateFunc()
def test():
    '''selenium code for click flipkart login button'''


def main():
    print("Don't change this function")


        ###### RESULT ######## 
# └── test.py :
from Nara import CreateFunc


def main1():
    print("Don't change this function")

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

def selenium_code_for_flipkart() -> int:
    driver = webdriver.Chrome()  # Replace with your preferred browser
    driver.get("https://www.flipkart.com")
    WebDriverWait(driver, 10).until(EC.title_contains("Flipkart"))
    # Add your custom code here to interact with the Flipkart webpage
    driver.quit()
    return 0

def main():
    print("Don't change this function")

```


## Authors
- Subhash Kumar
- Divyansh Shukla
- Yateesh Reddy

## License
This project is licensed under the MIT License - see the LICENSE file for details.

## Contributing
Contributions are welcome! Please read the CONTRIBUTING.md file for details on how to contribute to this project.

## Contact
If you have any questions or suggestions, feel free to contact us at naravirtualai@gmail.com.

## Acknowledgements
Special thanks to all the contributors and users who have supported this project.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/subh-sk/Nara",
    "name": "Nara",
    "maintainer": "Nara Developers",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "naravirtualai@gmail.com",
    "keywords": "ai, templategenerator, template generator, code generation, temp mail, ai chat, nara, nara ai, json, fakename, fakeid",
    "author": "Subhash Kumar, Divyansh Shukla, Yateesh Reddy",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/05/5c/4ef6acbd61353b52f7d16c1d7deaeef86f7ecc14919d0a295fcb4a45a06e/nara-0.1.5.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\r\n<img src=\"https://raw.githubusercontent.com/subh-sk/Nara/main/Logo/nara.png\" width=\"300\">\r\n</h1><br>\r\n\r\n\r\n# Nara\r\n\r\nNara is a comprehensive Python package designed to streamline various tasks such as creating temporary emails, generating random passwords, IDs, names, and more. It also includes features for caching to enhance response times, modifying JSON structures effortlessly, and integrating multiple AI models for real-time information retrieval and engaging chatbot interactions.\r\n\r\n\r\n## Key Features\r\n\r\n- **Temporary Email Creation**: Easily generate and manage temporary emails for testing and other purposes.\r\n- **Random Data Generation**: Generate random passwords, IDs, names, and other data with customizable options.\r\n- **Caching**: Implement caching mechanisms to store data temporarily and improve performance.\r\n- **JSON Manipulation**: Simplify JSON data modification and handling with built-in utilities.\r\n- **AI Integration**: Access and interact with multiple AI models for real-time information and human-like chatbot conversations.\r\n- **AI Training**: Train and customize AI models to enhance their performance and adaptability.\r\n\r\nWhether you are developing applications, automating tasks, or integrating AI-based solutions, Nara provides a robust and flexible toolkit to meet your needs.\r\n\r\n## Installation\r\n\r\nYou can install the package using pip:\r\n\r\n```bash\r\npip install Nara\r\n```\r\n\r\n## Usage\r\n- Here is a simple example of how to use Nara:\r\n\r\n### Usage with temporary Mail\r\n```py\r\nfrom Nara.Extra import OnlyMail,MailUrl,MailOtp\r\n\r\n# Example usage for generating a temporary email\r\nOnlyMail(Printable=True) #only for generate email\r\n\r\n# Example usage for generating a temporary email and get verification link\r\nmail_OBJ = MailUrl(Timeout=20,Printable=True)\r\nprint(next(mail_OBJ))\r\ninput(\"wait = \")\r\nurl = next(mail_OBJ)\r\nprint(url)\r\n\r\n# Example usage for generating a temporary email and get verification Code\r\nmail_OBJ = MailOtp(OtpLength=6,Timeout=20,Printable=True)\r\nprint(next(mail_OBJ))\r\ninput(\"wait = \")\r\nurl = next(mail_OBJ)\r\nprint(url)\r\n\r\n```\r\n\r\n### Usage with json Files\r\n```py\r\nfrom Nara.Extra import LoadJson,JsonList,JsonDict,LoadTestResults\r\n\r\n #Example usage for create a json file if not exist and save your jason as list formate\r\nJsonList(FileName=\"data.json\", name=\"Alice\", age=30)\r\n\r\n\u00e2\u201d\u201d\u00e2\u201d\u20ac\u00e2\u201d\u20ac test.py\r\n\u00e2\u201d\u201d\u00e2\u201d\u20ac\u00e2\u201d\u20ac data.json\r\ndata.json : [\r\n                {\r\n                \"name\": \"Alice\",\r\n                \"age\": 30\r\n                }\r\n            ]\r\n\r\n\r\n#Example usage for create a json file if not exist and save your jason as Dict formate\r\nJsonDict(Key=\"username\", Value=\"johndoe\", FileName=\"config.json\")\r\n\r\n\u00e2\u201d\u201d\u00e2\u201d\u20ac\u00e2\u201d\u20ac test.py\r\n\u00e2\u201d\u201d\u00e2\u201d\u20ac\u00e2\u201d\u20ac config.json\r\nconfig.json : {\r\n                \"username\": \"johndoe\"\r\n            }\r\n\r\n#Example usage for Load The json file\r\na = LoadJson(FileName=\"config.json\")\r\nprint(a)\r\n> OUTPUT : {'username': 'johndoe'}\r\n\r\n```\r\n\r\n### Usage For fast Processing\r\n\r\n```py\r\n#Example usage for create cache file that will help you to run your cache code in millisecond\r\nfrom Nara.Extra import CacheManager\r\na= CacheManager(\"cache.json\")\r\n@a.cache\r\ndef b():\r\n    a,b=10,20\r\n    c = 0\r\n    c = a+b\r\n    sleep(5)\r\n    c = c+10\r\n    return a+b\r\nprint(b()) #first time it store this function return in chache\r\nprint(b()) #it will retrun the function within a millisecond using cahe.json\r\n\r\n```\r\n\r\n### Usage to Create template code Using AI\r\n```py\r\nfrom Nara import CreateTemplate\r\n\r\n#Example usage for create template code of the provided prompt. like here we give selenium so it will change your file and write code for selenium structure\r\nCreateTemplate(\"selenium\")\r\n\r\n\u00e2\u201d\u201d\u00e2\u201d\u20ac\u00e2\u201d\u20ac test.py :  CreateTemplate(\"selenium\")\r\n################## make code for selenium template \u00f0\u0178\u2018\u2021 ####################\r\ntest.py :\r\nfrom selenium import webdriver\r\nfrom selenium.webdriver.common.by import By\r\n\r\n# Replace with your preferred browser\r\ndriver = webdriver.Chrome()  # For Chrome\r\n# driver = webdriver.Firefox()  # For Firefox\r\n\r\ndef navigate_to_url(url):\r\n    driver.get(url)\r\n\r\ndef find_element_by_xpath(xpath):\r\n    element = driver.find_element(By.XPATH, xpath)\r\n    return element\r\n\r\ndef close_browser():\r\n    driver.quit()\r\n\r\n# Example usage\r\nurl = \"https://www.google.com\"\r\nnavigate_to_url(url)\r\nelement = find_element_by_xpath(\"//input[@name='q']\")\r\nprint(element.get_attribute(\"placeholder\"))\r\n\r\nclose_browser()\r\n\r\n```\r\n\r\n### Usage to Create Function code Using AI\r\n```py\r\n\r\n# \u00e2\u201d\u201d\u00e2\u201d\u20ac\u00e2\u201d\u20ac test.py :\r\n\r\nfrom Nara import CreateFunc\r\n\r\ndef main1():\r\n    print(\"Don't change this function\")\r\n\r\n# @CreateFunc()\r\n# def selenium_code_for_flipkart() -> None: #type your reuirements code as function name\r\n    pass\r\n\r\n########## OR ###########\r\n\r\n#here you can specify your question in doc string.\r\n@CreateFunc()\r\ndef test():\r\n    '''selenium code for click flipkart login button'''\r\n\r\n\r\ndef main():\r\n    print(\"Don't change this function\")\r\n\r\n\r\n        ###### RESULT ######## \r\n# \u00e2\u201d\u201d\u00e2\u201d\u20ac\u00e2\u201d\u20ac test.py :\r\nfrom Nara import CreateFunc\r\n\r\n\r\ndef main1():\r\n    print(\"Don't change this function\")\r\n\r\nfrom selenium import webdriver\r\nfrom selenium.webdriver.common.by import By\r\nfrom selenium.webdriver.support.ui import WebDriverWait\r\nfrom selenium.webdriver.support import expected_conditions as EC\r\n\r\ndef selenium_code_for_flipkart() -> int:\r\n    driver = webdriver.Chrome()  # Replace with your preferred browser\r\n    driver.get(\"https://www.flipkart.com\")\r\n    WebDriverWait(driver, 10).until(EC.title_contains(\"Flipkart\"))\r\n    # Add your custom code here to interact with the Flipkart webpage\r\n    driver.quit()\r\n    return 0\r\n\r\ndef main():\r\n    print(\"Don't change this function\")\r\n\r\n```\r\n\r\n\r\n## Authors\r\n- Subhash Kumar\r\n- Divyansh Shukla\r\n- Yateesh Reddy\r\n\r\n## License\r\nThis project is licensed under the MIT License - see the LICENSE file for details.\r\n\r\n## Contributing\r\nContributions are welcome! Please read the CONTRIBUTING.md file for details on how to contribute to this project.\r\n\r\n## Contact\r\nIf you have any questions or suggestions, feel free to contact us at naravirtualai@gmail.com.\r\n\r\n## Acknowledgements\r\nSpecial thanks to all the contributors and users who have supported this project.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A versatile package for AI-based real-time information and chatbot interactions, creating temporary emails, generating random data, caching, and JSON manipulation.",
    "version": "0.1.5",
    "project_urls": {
        "Documentation": "https://github.com/subh-sk/Nara/wiki",
        "Download": "https://pypi.org/project/nara/#files",
        "Homepage": "https://github.com/subh-sk/Nara",
        "Release notes": "https://github.com/subh-sk/Nara/releases",
        "Source": "https://github.com/subh-sk/Nara",
        "Tracker": "https://github.com/subh-sk/Nara/issues"
    },
    "split_keywords": [
        "ai",
        " templategenerator",
        " template generator",
        " code generation",
        " temp mail",
        " ai chat",
        " nara",
        " nara ai",
        " json",
        " fakename",
        " fakeid"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "14f64ad0530565e55015ebb75155eb9fd6cf7c8fc6bdcf4836076f63f767f80b",
                "md5": "18a192a2571408fd6c41485f74daa863",
                "sha256": "cd3c4d15eeaf543647fe2234cb374f0762eca41cd417567d1af5ea09f99ae3f6"
            },
            "downloads": -1,
            "filename": "Nara-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "18a192a2571408fd6c41485f74daa863",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 17761,
            "upload_time": "2024-05-20T08:53:04",
            "upload_time_iso_8601": "2024-05-20T08:53:04.586766Z",
            "url": "https://files.pythonhosted.org/packages/14/f6/4ad0530565e55015ebb75155eb9fd6cf7c8fc6bdcf4836076f63f767f80b/Nara-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "055c4ef6acbd61353b52f7d16c1d7deaeef86f7ecc14919d0a295fcb4a45a06e",
                "md5": "1c0f110300a6631dfda7f5dff1568e3c",
                "sha256": "34ac1cc7b32e645ed0daad17ca1bb30e5b20dda42bcb078204f0490eda1f7056"
            },
            "downloads": -1,
            "filename": "nara-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "1c0f110300a6631dfda7f5dff1568e3c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 14359,
            "upload_time": "2024-05-20T08:53:06",
            "upload_time_iso_8601": "2024-05-20T08:53:06.945367Z",
            "url": "https://files.pythonhosted.org/packages/05/5c/4ef6acbd61353b52f7d16c1d7deaeef86f7ecc14919d0a295fcb4a45a06e/nara-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-20 08:53:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "subh-sk",
    "github_project": "Nara",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "nara"
}
        
Elapsed time: 0.34682s