alien-language


Namealien-language JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttps://github.com/ishanoshada/alien-language
SummaryA Python to Alien Language translator. Translate Python code into a fun, alien-like syntax!
upload_time2025-01-31 16:08:17
maintainerNone
docs_urlNone
authorIshan Oshada
requires_pythonNone
licenseMIT
keywords alien language python translator fun programming code translation python to alien programming language
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Alien Language Translator 🛸

[![PyPI Version](https://img.shields.io/pypi/v/alien_language)](https://pypi.org/project/alien_language/)
[![License](https://img.shields.io/pypi/l/alien_language)](https://github.com/ishanoshada/alien-language/blob/main/LICENSE)
[![Python Versions](https://img.shields.io/pypi/pyversions/alien_language)](https://pypi.org/project/alien_language/)
[![GitHub Stars](https://img.shields.io/github/stars/ishanoshada/alien-language)](https://github.com/ishanoshada/alien-language/stargazers)
[![GitHub Issues](https://img.shields.io/github/issues/ishanoshada/alien-language)](https://github.com/ishanoshada/alien-language/issues)

**Alien Language Translator** is a fun and creative Python package that translates Python code into an alien-like syntax. Whether you're learning Python, teaching programming, or just looking for a fun way to experiment with code, this package is for you!

---

## Features ✨

- **Translate Python to Alien Language**: Convert Python code into a unique alien-like syntax.
- **Translate Alien Language to Python**: Convert alien code back into Python.
- **Command-Line Interface (CLI)**: Easily translate files or code snippets via the command line.
- **Interactive Mode**: Translate Python code in real-time using an interactive shell.
- **Lightweight and Easy to Use**: No dependencies, just pure Python fun!

---

## Installation 🛠️

You can install the `alien_language` package via pip:

```bash
pip install alien-language
```

---

## Usage 🚀

### 1. Translate Python to Alien Language

To translate a Python file (`my_script.py`) into alien language and save the output to `alien_script.alien`:

```bash
alien-translate --to-alien --input my_script.py --output alien_script.alien
```

### 2. Translate Alien Language to Python

To translate an alien language file (`alien_script.alien`) back into Python and save the output to `my_script.py`:

```bash
alien-translate --to-python --input alien_script.alien --output my_script.py
```

### 3. Interactive Mode

Start the interactive mode to translate Python code into alien language in real-time:

```bash
alien-translate --interactive
```

Example:

```plaintext
>>> print("Hello, Alien!")
zorp("Hello, Alien!")
```

Type `exit` to quit the interactive mode.

---

## Examples 📚

### Python Code

```python
def greet(name):
    if name == "Alien":
        print("Hello, Alien!")
    else:
        print("Hello, Human!")
```

### Translated Alien Code

```plaintext
plorp greet(name) [
    glorp name ==== "Alien" <
        zorp("Hello, Alien!")
    florp <
        zorp("Hello, Human!")
    >
]
```

---

## Contributing 🤝

We welcome contributions! If you'd like to contribute to the project, please follow these steps:

1. Fork the repository on [GitHub](https://github.com/ishanoshada/alien-language).
2. Create a new branch for your feature or bugfix.
3. Commit your changes and push them to your fork.
4. Submit a pull request with a detailed description of your changes.

For bug reports or feature requests, please open an issue on the [GitHub Issues](https://github.com/ishanoshada/alien-language/issues) page.

---

## License 📜

This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.

---

## Support 💖

If you find this project useful, please consider giving it a ⭐️ on [GitHub](https://github.com/ishanoshada/alien-language). Your support helps us improve and maintain the project!

---

## Contact 📧

For questions or feedback, feel free to reach out:

- **Author**: Ishan Oshada
- **Email**: ishan.kodithuwakku.offical@gmail.com
- **GitHub**: [ishanoshada](https://github.com/ishanoshada)
- **Project URL**: [https://github.com/ishanoshada/alien-language](https://github.com/ishanoshada/alien-language)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ishanoshada/alien-language",
    "name": "alien-language",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "alien language, python translator, fun programming, code translation, python to alien, programming language",
    "author": "Ishan Oshada",
    "author_email": "ishan.kodithuwakku.offical@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a1/86/4a1fce6cd31bdb4423da76b365181611aa6a230b3edd651b620f1e166572/alien_language-0.2.2.tar.gz",
    "platform": null,
    "description": "# Alien Language Translator \ud83d\udef8\n\n[![PyPI Version](https://img.shields.io/pypi/v/alien_language)](https://pypi.org/project/alien_language/)\n[![License](https://img.shields.io/pypi/l/alien_language)](https://github.com/ishanoshada/alien-language/blob/main/LICENSE)\n[![Python Versions](https://img.shields.io/pypi/pyversions/alien_language)](https://pypi.org/project/alien_language/)\n[![GitHub Stars](https://img.shields.io/github/stars/ishanoshada/alien-language)](https://github.com/ishanoshada/alien-language/stargazers)\n[![GitHub Issues](https://img.shields.io/github/issues/ishanoshada/alien-language)](https://github.com/ishanoshada/alien-language/issues)\n\n**Alien Language Translator** is a fun and creative Python package that translates Python code into an alien-like syntax. Whether you're learning Python, teaching programming, or just looking for a fun way to experiment with code, this package is for you!\n\n---\n\n## Features \u2728\n\n- **Translate Python to Alien Language**: Convert Python code into a unique alien-like syntax.\n- **Translate Alien Language to Python**: Convert alien code back into Python.\n- **Command-Line Interface (CLI)**: Easily translate files or code snippets via the command line.\n- **Interactive Mode**: Translate Python code in real-time using an interactive shell.\n- **Lightweight and Easy to Use**: No dependencies, just pure Python fun!\n\n---\n\n## Installation \ud83d\udee0\ufe0f\n\nYou can install the `alien_language` package via pip:\n\n```bash\npip install alien-language\n```\n\n---\n\n## Usage \ud83d\ude80\n\n### 1. Translate Python to Alien Language\n\nTo translate a Python file (`my_script.py`) into alien language and save the output to `alien_script.alien`:\n\n```bash\nalien-translate --to-alien --input my_script.py --output alien_script.alien\n```\n\n### 2. Translate Alien Language to Python\n\nTo translate an alien language file (`alien_script.alien`) back into Python and save the output to `my_script.py`:\n\n```bash\nalien-translate --to-python --input alien_script.alien --output my_script.py\n```\n\n### 3. Interactive Mode\n\nStart the interactive mode to translate Python code into alien language in real-time:\n\n```bash\nalien-translate --interactive\n```\n\nExample:\n\n```plaintext\n>>> print(\"Hello, Alien!\")\nzorp(\"Hello, Alien!\")\n```\n\nType `exit` to quit the interactive mode.\n\n---\n\n## Examples \ud83d\udcda\n\n### Python Code\n\n```python\ndef greet(name):\n    if name == \"Alien\":\n        print(\"Hello, Alien!\")\n    else:\n        print(\"Hello, Human!\")\n```\n\n### Translated Alien Code\n\n```plaintext\nplorp greet(name) [\n    glorp name ==== \"Alien\" <\n        zorp(\"Hello, Alien!\")\n    florp <\n        zorp(\"Hello, Human!\")\n    >\n]\n```\n\n---\n\n## Contributing \ud83e\udd1d\n\nWe welcome contributions! If you'd like to contribute to the project, please follow these steps:\n\n1. Fork the repository on [GitHub](https://github.com/ishanoshada/alien-language).\n2. Create a new branch for your feature or bugfix.\n3. Commit your changes and push them to your fork.\n4. Submit a pull request with a detailed description of your changes.\n\nFor bug reports or feature requests, please open an issue on the [GitHub Issues](https://github.com/ishanoshada/alien-language/issues) page.\n\n---\n\n## License \ud83d\udcdc\n\nThis project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## Support \ud83d\udc96\n\nIf you find this project useful, please consider giving it a \u2b50\ufe0f on [GitHub](https://github.com/ishanoshada/alien-language). Your support helps us improve and maintain the project!\n\n---\n\n## Contact \ud83d\udce7\n\nFor questions or feedback, feel free to reach out:\n\n- **Author**: Ishan Oshada\n- **Email**: ishan.kodithuwakku.offical@gmail.com\n- **GitHub**: [ishanoshada](https://github.com/ishanoshada)\n- **Project URL**: [https://github.com/ishanoshada/alien-language](https://github.com/ishanoshada/alien-language)\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python to Alien Language translator. Translate Python code into a fun, alien-like syntax!",
    "version": "0.2.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/ishanoshada/alien-language/issues",
        "Documentation": "https://github.com/ishanoshada/alien-language#readme",
        "Homepage": "https://github.com/ishanoshada/alien-language",
        "Source Code": "https://github.com/ishanoshada/alien-language"
    },
    "split_keywords": [
        "alien language",
        " python translator",
        " fun programming",
        " code translation",
        " python to alien",
        " programming language"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ea7b7edc7b80ce480e447c69ba7d53f19dba52603e90848c085da4797814b04f",
                "md5": "66c0dcc30863012b0772d273875f79c4",
                "sha256": "ccd8a96cb0bfcda32fbc53e0ce6021aacc636709c00152d3834c2c5e43db7abd"
            },
            "downloads": -1,
            "filename": "alien_language-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "66c0dcc30863012b0772d273875f79c4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4742,
            "upload_time": "2025-01-31T16:08:12",
            "upload_time_iso_8601": "2025-01-31T16:08:12.884775Z",
            "url": "https://files.pythonhosted.org/packages/ea/7b/7edc7b80ce480e447c69ba7d53f19dba52603e90848c085da4797814b04f/alien_language-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a1864a1fce6cd31bdb4423da76b365181611aa6a230b3edd651b620f1e166572",
                "md5": "6ef38865889790a62015e4823f79a441",
                "sha256": "fa13e2bc17539e668ba51b719463f2cf8e1d213c758c56a3b706e042a46b52f2"
            },
            "downloads": -1,
            "filename": "alien_language-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "6ef38865889790a62015e4823f79a441",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4519,
            "upload_time": "2025-01-31T16:08:17",
            "upload_time_iso_8601": "2025-01-31T16:08:17.287372Z",
            "url": "https://files.pythonhosted.org/packages/a1/86/4a1fce6cd31bdb4423da76b365181611aa6a230b3edd651b620f1e166572/alien_language-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-31 16:08:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ishanoshada",
    "github_project": "alien-language",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "alien-language"
}
        
Elapsed time: 0.74361s