Skip to main content

Hide: Headless IDE for coding agents

Project description

Hide: Headless IDE for Coding Agents

Hide is a headless Integrated Development Environment (IDE) designed for coding agents. It provides a robust toolkit for managing projects, running tasks, and handling files within a project.

Table of Contents

Requirements

Installation

pip install hide-py

From sources

To install Hide from sources, you need Poetry.

  1. Clone the repository:

    git clone git@github.com:hide-org/hide-sdk.git
    cd hide-sdk
    
  2. Install the dependencies and Hide in editable mode:

    poetry install
    

Usage

HideClient

The HideClient class provides methods to interact with the Hide server. Here are some examples of how to use it:

import hide
from hide.model import Repository
from hide.devcontainer.model import ImageDevContainer

hide_client = hide.Client()

project = hide_client.create_project(
    repository=Repository(url="https://github.com/your-org/your-repo.git"),
    devcontainer=ImageDevContainer(
        image="mcr.microsoft.com/devcontainers/python:3.12",
        onCreateCommand="pip install -r requirements.txt",
        customizations={
            "hide": {
                "tasks": [
                    {"alias": "test", "command": "poetry run pytest"},
                    {"alias": "run", "command": "poetry run uvicorn main:main"},
                ]
            }
        },
    ),
)

print(f"Project ID: {project.id}")

Testing

To run the tests, use the following command:

poetry run pytest

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

Releases

To release a new version, follow these steps:

  1. Update the version in pyproject.toml. Try to follow Semantic Versioning.

  2. Commit the changes with the message "Release vX.Y.Z" and open a pull request.

  3. After the pull request is merged, create a new release using the GitHub UI or the command line. For example, to create a new release with the command line, run the following command:

    gh release create vX.Y.Z --title "hide-py vX.Y.Z" --generate-notes
    

    Replace X.Y.Z with the new version number.

    For additional options and for UI instructions, refer to the GitHub documentation.

  4. The release will trigger a GitHub Actions workflow that will publish the package to PyPI. Monitor the workflow for any errors or warnings.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

hide_py-0.4.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

hide_py-0.4.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file hide_py-0.4.2.tar.gz.

File metadata

  • Download URL: hide_py-0.4.2.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for hide_py-0.4.2.tar.gz
Algorithm Hash digest
SHA256 4168f7b12ddf77c4afe24d0fe539b09bebdc6c2f5c540b95acd29ceadb9cd190
MD5 049f4f845a8e116bdc17ba5a4c1238db
BLAKE2b-256 d0dae7d9b8d7d13885d2fedcb83d04106a24c0a2d4937a3b2687961415f48f26

See more details on using hashes here.

File details

Details for the file hide_py-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: hide_py-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for hide_py-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 462d90d343c4a5d0a4ef17c75946e7fe7ecf7295e0545cfb61869eed1993add4
MD5 366f23e2d6805d46ae9fcb0f186a0e38
BLAKE2b-256 011429f8db97ad6bc682a65dee37872e1e2c7eb06283acf3541d0e360a3ef038

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