Alien Language Translator 🛸
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:
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:
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:
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:
alien-translate --interactive
Example:
>>> print("Hello, Alien!")
zorp("Hello, Alien!")
Type exit to quit the interactive mode.
Examples 📚
Python Code
def greet(name):
if name == "Alien":
print("Hello, Alien!")
else:
print("Hello, Human!")
Translated Alien Code
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:
- Fork the repository on GitHub.
- Create a new branch for your feature or bugfix.
- Commit your changes and push them to your fork.
- 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 page.
License 📜
This project is licensed under the MIT License. See the LICENSE file for details.
Support 💖
If you find this project useful, please consider giving it a ⭐️ on GitHub. 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
- Project URL: https://github.com/ishanoshada/alien-language
Metadata
Release files for alien-language 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| alien_language-0.2.2.tar.gz | 4.5 kB | Without provenance | Details for alien_language-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alien_language-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for alien_language-0.2.2-py3-none-any.whl |
Total release size: 9.3 kB
Release files / alien_language-0.2.2.tar.gz
| Download URL | alien_language-0.2.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa13e2bc17539e668ba51b719463f2cf8e1d213c758c56a3b706e042a46b52f2
|
|
BLAKE2b-256 checksum How to use checksums |
a1864a1fce6cd31bdb4423da76b365181611aa6a230b3edd651b620f1e166572
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / alien_language-0.2.2-py3-none-any.whl
| Download URL | alien_language-0.2.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccd8a96cb0bfcda32fbc53e0ce6021aacc636709c00152d3834c2c5e43db7abd
|
|
BLAKE2b-256 checksum How to use checksums |
ea7b7edc7b80ce480e447c69ba7d53f19dba52603e90848c085da4797814b04f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Security for alien-language 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.