aksharify


Nameaksharify JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://primepatel.github.io/aksharify/
SummaryAscii Art + Emoji Art python Package
upload_time2023-07-30 07:43:02
maintainer
docs_urlNone
authorPrime Patel
requires_python>=3.10,<4.0
licenseMIT
keywords ascii art emoji art prime patel primepatel
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <a name="readme-top"></a>

# __Aksharify__

[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]
[![PyPI - Downloads][Downloads-shield]](https://pypistats.org/packages/aksharify)

<br />

## About The Module

Aksharify is an open-source python package hosted on GitHub that allows you to effortlessly transform images into captivating ASCII art representations. With Aksharify, you can convert your favorite images into an artistic arrangement of ASCII characters, adding a unique and nostalgic touch to your projects.

Start transforming your photos into captivating ASCII art with Aksharify and unleash your creativity in the world of visual representation!
## Key Features

- Convert photos and images into ASCII art with a single function call.

- Fine-tune the output by adjusting parameters such as character set, resolution etc.

- Support for various character sets, allowing you to customize the style of the generated ASCII art.

- Export the ASCII art as plain text or save it as an image file for easy sharing and integration.

## What is AsciiArt

ASCII art is a style of art in which people make graphics and designs by using letters, numbers, and symbols from a unique set of characters known as ASCII. ASCII painters create intriguing images by arranging these characters in patterns and forms rather than using colours and brushes as in traditional art. They meticulously select the appropriate characters and combine them to produce images of animals, people, or even landscapes. It's almost as if you're sketching with letters and symbols! ASCII art is a fun way for artists to express themselves using only the basic characters present on a computer keyboard.

<!-- ABOUT THE PROJECT -->
## Motivation

The inspiration for this module came from a Numberphile video called "The Trinity Hall Prime," which I first saw in high school days. It motivated me to explore the possibilities of such a prime number. I created a Python module that uses a predetermined character set to turn photos into ASCII art. It manipulates images using the PIL package, transforming them to grayscale before mapping pixel values to ASCII letters. Users can change the character set to get different effects.

<!-- GETTING STARTED -->
## Getting Started

Before we begin, make sure you have one of recent versions of Python installed on your computer.

### Installation

```sh
python -m pip install aksharify
```

## Usage

```python
from aksharify import AksharArt
from aksharify.image import Image
from aksharify.distributions import Linear
from aksharify.outputs import SVG
```

```python
image = Image("images\julia1.png")
image.set_dim(200)
image.show()
```

```python
lin = Linear("01")
lin.show()
```

```python
art = AksharArt(image, lin)
art.aksharify(show=True)
```

```python
config = SVG()
config.file_name = "art"
config.bold = True
```

```python
art.export(config)
```

_For examples from user community, please refer to the [primepatel.github.io/aksharify](https://primepatel.github.io/aksharify)_


<!-- ROADMAP -->
## Roadmap

- [x] NumberiFy
- [ ] Predifined order of characters
- [ ] Getting images from URL
- [ ] EmojiFy

See the [open issues](https://github.com/github_username/repo_name/issues) for a full list of proposed features (and known issues).

<!-- CONTRIBUTING -->
## Contributing

Contributions are what make the open source community such a wonderful place to learn, be inspired, and create. Any contributions you make are `appreciated greatly`.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

<!-- LICENSE -->
## License

Distributed under the MIT License. See `LICENSE.txt` for more information.

<!-- CONTACT -->
## Contact

Prime Patel - [@primepatel](https://twitter.com/primespatel) - primespatel@gmail.com

Project Link: [https://github.com/primepatel/aksharify](https://github.com/primepatel/aksharify)


<!-- ACKNOWLEDGMENTS -->
<!-- ## Acknowledgments

* []()
* []()
* []() -->

<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[contributors-shield]: https://img.shields.io/github/contributors/primepatel/Aksharify.svg?style=for-the-badge
[contributors-url]: https://github.com/primepatel/Aksharify/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/primepatel/Aksharify.svg?style=for-the-badge
[forks-url]: https://github.com/primepatel/Aksharify/network/members
[stars-shield]: https://img.shields.io/github/stars/primepatel/Aksharify.svg?style=for-the-badge
[stars-url]: https://github.com/primepatel/Aksharify/stargazers
[issues-shield]: https://img.shields.io/github/issues/primepatel/Aksharify.svg?style=for-the-badge
[issues-url]: https://github.com/primepatel/Aksharify/issues
[license-shield]: https://img.shields.io/github/license/primepatel/Aksharify.svg?style=for-the-badge
[license-url]: https://github.com/primepatel/Aksharify/blob/master/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/primepatel
[Downloads-shield]: https://img.shields.io/pypi/dm/aksharify?style=for-the-badge
            

Raw data

            {
    "_id": null,
    "home_page": "https://primepatel.github.io/aksharify/",
    "name": "aksharify",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "Ascii Art,Emoji Art,Prime Patel,primepatel",
    "author": "Prime Patel",
    "author_email": "primespatel@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1f/20/84f57cbdf63a559589a8be3a67771086fd9cfb5d259b4cfac6fe9ff64c54/aksharify-0.2.0.tar.gz",
    "platform": null,
    "description": "<a name=\"readme-top\"></a>\n\n# __Aksharify__\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n[![PyPI - Downloads][Downloads-shield]](https://pypistats.org/packages/aksharify)\n\n<br />\n\n## About The Module\n\nAksharify is an open-source python package hosted on GitHub that allows you to effortlessly transform images into captivating ASCII art representations. With Aksharify, you can convert your favorite images into an artistic arrangement of ASCII characters, adding a unique and nostalgic touch to your projects.\n\nStart transforming your photos into captivating ASCII art with Aksharify and unleash your creativity in the world of visual representation!\n## Key Features\n\n- Convert photos and images into ASCII art with a single function call.\n\n- Fine-tune the output by adjusting parameters such as character set, resolution etc.\n\n- Support for various character sets, allowing you to customize the style of the generated ASCII art.\n\n- Export the ASCII art as plain text or save it as an image file for easy sharing and integration.\n\n## What is AsciiArt\n\nASCII art is a style of art in which people make graphics and designs by using letters, numbers, and symbols from a unique set of characters known as ASCII. ASCII painters create intriguing images by arranging these characters in patterns and forms rather than using colours and brushes as in traditional art. They meticulously select the appropriate characters and combine them to produce images of animals, people, or even landscapes. It's almost as if you're sketching with letters and symbols! ASCII art is a fun way for artists to express themselves using only the basic characters present on a computer keyboard.\n\n<!-- ABOUT THE PROJECT -->\n## Motivation\n\nThe inspiration for this module came from a Numberphile video called \"The Trinity Hall Prime,\" which I first saw in high school days. It motivated me to explore the possibilities of such a prime number. I created a Python module that uses a predetermined character set to turn photos into ASCII art. It manipulates images using the PIL package, transforming them to grayscale before mapping pixel values to ASCII letters. Users can change the character set to get different effects.\n\n<!-- GETTING STARTED -->\n## Getting Started\n\nBefore we begin, make sure you have one of recent versions of Python installed on your computer.\n\n### Installation\n\n```sh\npython -m pip install aksharify\n```\n\n## Usage\n\n```python\nfrom aksharify import AksharArt\nfrom aksharify.image import Image\nfrom aksharify.distributions import Linear\nfrom aksharify.outputs import SVG\n```\n\n```python\nimage = Image(\"images\\julia1.png\")\nimage.set_dim(200)\nimage.show()\n```\n\n```python\nlin = Linear(\"01\")\nlin.show()\n```\n\n```python\nart = AksharArt(image, lin)\nart.aksharify(show=True)\n```\n\n```python\nconfig = SVG()\nconfig.file_name = \"art\"\nconfig.bold = True\n```\n\n```python\nart.export(config)\n```\n\n_For examples from user community, please refer to the [primepatel.github.io/aksharify](https://primepatel.github.io/aksharify)_\n\n\n<!-- ROADMAP -->\n## Roadmap\n\n- [x] NumberiFy\n- [ ] Predifined order of characters\n- [ ] Getting images from URL\n- [ ] EmojiFy\n\nSee the [open issues](https://github.com/github_username/repo_name/issues) for a full list of proposed features (and known issues).\n\n<!-- CONTRIBUTING -->\n## Contributing\n\nContributions are what make the open source community such a wonderful place to learn, be inspired, and create. Any contributions you make are `appreciated greatly`.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n<!-- LICENSE -->\n## License\n\nDistributed under the MIT License. See `LICENSE.txt` for more information.\n\n<!-- CONTACT -->\n## Contact\n\nPrime Patel - [@primepatel](https://twitter.com/primespatel) - primespatel@gmail.com\n\nProject Link: [https://github.com/primepatel/aksharify](https://github.com/primepatel/aksharify)\n\n\n<!-- ACKNOWLEDGMENTS -->\n<!-- ## Acknowledgments\n\n* []()\n* []()\n* []() -->\n\n<p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\n\n\n\n<!-- MARKDOWN LINKS & IMAGES -->\n<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->\n[contributors-shield]: https://img.shields.io/github/contributors/primepatel/Aksharify.svg?style=for-the-badge\n[contributors-url]: https://github.com/primepatel/Aksharify/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/primepatel/Aksharify.svg?style=for-the-badge\n[forks-url]: https://github.com/primepatel/Aksharify/network/members\n[stars-shield]: https://img.shields.io/github/stars/primepatel/Aksharify.svg?style=for-the-badge\n[stars-url]: https://github.com/primepatel/Aksharify/stargazers\n[issues-shield]: https://img.shields.io/github/issues/primepatel/Aksharify.svg?style=for-the-badge\n[issues-url]: https://github.com/primepatel/Aksharify/issues\n[license-shield]: https://img.shields.io/github/license/primepatel/Aksharify.svg?style=for-the-badge\n[license-url]: https://github.com/primepatel/Aksharify/blob/master/LICENSE.txt\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555\n[linkedin-url]: https://linkedin.com/in/primepatel\n[Downloads-shield]: https://img.shields.io/pypi/dm/aksharify?style=for-the-badge",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Ascii Art + Emoji Art python Package",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://primepatel.github.io/aksharify/",
        "Repository": "https://github.com/primepatel/aksharify"
    },
    "split_keywords": [
        "ascii art",
        "emoji art",
        "prime patel",
        "primepatel"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d7e791db686944c73ef4900d9246045feb5338c6ceb89dedd0c1c6f7b896245",
                "md5": "88773a8d6946b6e4b960019af408765b",
                "sha256": "5c58326a90bcc286f3c358b0271e3df3963a89853d8f5fead2f689b2e8927b43"
            },
            "downloads": -1,
            "filename": "aksharify-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "88773a8d6946b6e4b960019af408765b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 11351,
            "upload_time": "2023-07-30T07:43:01",
            "upload_time_iso_8601": "2023-07-30T07:43:01.015532Z",
            "url": "https://files.pythonhosted.org/packages/1d/7e/791db686944c73ef4900d9246045feb5338c6ceb89dedd0c1c6f7b896245/aksharify-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f2084f57cbdf63a559589a8be3a67771086fd9cfb5d259b4cfac6fe9ff64c54",
                "md5": "e3fec2ca0a4dd18e65875580ad111a73",
                "sha256": "db87e1066d70f6030a3190f9265a41979a324c6d1ac8b96b0e240238a4b06c8e"
            },
            "downloads": -1,
            "filename": "aksharify-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e3fec2ca0a4dd18e65875580ad111a73",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 11416,
            "upload_time": "2023-07-30T07:43:02",
            "upload_time_iso_8601": "2023-07-30T07:43:02.878697Z",
            "url": "https://files.pythonhosted.org/packages/1f/20/84f57cbdf63a559589a8be3a67771086fd9cfb5d259b4cfac6fe9ff64c54/aksharify-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-30 07:43:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "primepatel",
    "github_project": "aksharify",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aksharify"
}
        
Elapsed time: 0.10878s