Skip to main content

BeeGen is an intelligent command-line tool designed to assist developers with everyday tasks, leveraging the power of generative AI.

Project description

BeeGen

BeeGen is an intelligent command-line tool designed to assist developers with everyday tasks, leveraging the power of generative AI.

Code Style Black Imports Isort Security Bandit

BeeGen

With Beegen, you can streamline your development process, improve code quality, and automate various aspects of project creation and management.

Features

  • Mock APIs: Quickly create and run mock API servers.
  • Sensitive Data Anonymization: Use generative AI to mask identifiable information and ensure privacy.
  • Vector Store Generation: Create a local vector store using FAISS for projects that require semantic search.
  • README Generator: Automatically generate a detailed README file for your projects.
  • Translation: Quickly translate text between different languages.
  • Code Snippets: Add, list, remove, and use code snippets directly from the command line.
  • AI Chat Interface: Interact with language models in a terminal-based chat.

Installation

You can install BeeGen in two ways:

PyPI

pip install beegen

Directly from the repository using poetry

poetry install

Usage

Here are a few examples of how you can use BeeGen for daily tasks:

Configure

Configure the LLM and access keys for usage.

beegen configure

Create a Mock API

Generate a configuration file for a mock API:

beegen mock create

Mockefile (template)

authentication:
  key: 20s7ILRwS9eMU8sXQ1sT9WaxFQTJwK5usCz3P_Ium6E
  name: X-API-Key
  type: api_key
description: BeeGen mockfile API example
endpoints:
- access: public
  method: GET
  path: /users
  response:
    body:
    - email: john.doe@example.com
      id: 1
      name: John Doe
    - email: jane.doe@example.com
      id: 2
      name: Jane Doe
    status: 200
- access: protected
  method: POST
  path: /user
  request:
  - description: The user ID
    name: id
    type: int
  - description: The user name
    name: name
    type: str
  - description: The user email
    name: email

Run the mock API server:

beegen mock run

Anonymize Sensitive Data

Use the following command to anonymize sensitive data with generative AI to ensure privacy by masking identifiable information:

beegen smart anonymize-data "<your text>"

Anonymize sensitive data in files:

beegen smart anonymize-data --file data.txt

Create a Vector Store

Build a local vector store from specific files or directories:

beegen smart create-vectorstore <your path>

Generate a README

Automatically generate a detailed README file for your project:

beegen smart readme <your path>

Generate a Regex

Generate a regular expression based on the provided value:

beegen smart regex "email@email.com" --language python

Full List of Commands

To view the complete list of available commands, run:

beegen list

Contributing

Contributions to BeeGen are welcome! If you find a bug, have a feature request, or want to improve the code, please submit a pull request.

License

BeeGen is licensed under the MIT License. See the LICENSE file for more information.

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

beegen-0.1.2.tar.gz (59.2 kB view details)

Uploaded Source

Built Distribution

beegen-0.1.2-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

File details

Details for the file beegen-0.1.2.tar.gz.

File metadata

  • Download URL: beegen-0.1.2.tar.gz
  • Upload date:
  • Size: 59.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for beegen-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aea2be6eba54702566a120ea5f4bcf6906866a83343298b699c7a8d561539cd4
MD5 7a83aae024bda785bdc11c3ce9c9d900
BLAKE2b-256 fb9890a45f770cf26d2c1cdf7820d8fd82f70929a29d9eb74b500c7b3b9b6d75

See more details on using hashes here.

File details

Details for the file beegen-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: beegen-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 67.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for beegen-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d680a8fd7c8b83fe162e5f4335e736e91922699d05aa998ce1dfa8196cea48e
MD5 5d59159f568a70205fedcb3f37be1109
BLAKE2b-256 44be9d4486e20cdd629f62fa935afedf6f4842023a153c399e8c51c441cfcdfa

See more details on using hashes here.

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