Skip to content

How to improve azcii ?

Mahdi Qiamast edited this page Jan 29, 2023 · 1 revision

azcii - Wiki

Welcome to the azcii wiki! Here is some information on how to improve and enhance the package.

## Adding new art

The art package for Python, which azcii uses to generate the art, has a wide variety of art available. However, you may want to add your own art to the package.

To do this, you'll need to create a new file in the azcii/art directory with the name of your art. The file should contain a string with the art in the format used by the art package.

Once you've created the file, you'll need to import it in the __main__.py file and add it to the list of available art.

Customizing the art

You can also customize the existing art in the package by editing the art files in the azcii/art directory. You can change the characters used in the art or adjust the spacing to create a different look.

Adding new commands

azcii currently only has one command, azcii [name of the art], but you can add new commands to the package. To do this, you'll need to edit the __main__.py file and add a new function for the command. The function should take the command's arguments as input and perform the desired action.

Once you've created the function, you'll need to add the command to the entry_points section of the setup.py file. This will make the command available to users.

Improving performance

If you notice that azcii is running slowly or taking up too much memory, you can try several things to improve its performance.

  1. Optimize the code: Review the code and look for areas where it can be optimized for better performance.

  2. Use caching: You can use caching to store the generated art so that it doesn't have to be generated every time it's displayed.

  3. Limit the number of art: You can limit the number of available art to reduce memory usage.