Code Monkey home page Code Monkey logo

python-art's Introduction

Python-Art ๐ŸŽจ๐Ÿ–Œ๏ธ

UPDATE: Project Archived!

This project has been archived to preserve its state at the end of Hacktoberfest 2019. Thank you to everyone that participated and made this project what it is tody and we look forward to seeing you all at Hacktoberfest 2020! Interested in more events? keep an eye on our Events page HERE


Following the launch of the brand new Complete Python Developer: Zero to Mastery course, here is a perfect opportunity to put those new found skills to the test. Here we will be using Python to take an image input which it will then convert into ASCII Art.

How to get Started:

In order to get started on this project, I recommend you watch the section on Scripting in the Python course. We talk about sys.argv and Pillow library (Image processing) in that section which would help you!

  1. Clone this repo
  2. Make sure you have Python v3.6 (or greater) installed on your machine
  3. Install the project dependencies pip install -r requirements.txt
  4. run the command: python3 make_art.py -i zeroToMasteryIcon.png -c 1 or python3 make_art.py -i zeroToMasteryIcon.png -c 2 for a more clear output [zoomout a little bit]
  5. Stare with amazement ๐Ÿ˜ฎ

All discussions around this event can now be had in our #hacktoberfest-2019 channel on Discord!

Running Tests

Make sure you have all the dependencies installed, check step 3, How to get Started section

To add new test cases

  • Check test_unit.py module and start creating your test methods
  • Or create a new test module, for naming conventions check pytest docs (link below)
  • Run pytest -v command to run all the tests discovered by pytest

Click for more imformation about pytest

Need to convert an image into ASCII?

A webportal for converting images into ASCII! Link to portal :- Click

How to contribute?

Now that you see how this command line tool works, let's see how we can evolve it with our ZTM community help!! Maybe we want to display this on an HTML web page where users can submit images and we convert it to ASCII art? Maybe we want to improve how the Command Line Tool works/make it more customizeable? Or maybe modify the script to do many other types of art beyond ASCII.

The options are endless and there is no wrong answer. This is all for fun, so try to customize the tool whichever way you think would be best and let's see what we get at the end of the month! Enjoy!

Bonus Task:

We have left the original code which was written in Python 2 under the make_art_python2.py file. See what happens when you run it with Python 3. See all of the errors? Can you fix it so it works with python 3? The answer is with the make_art.py file which is written in Python 3.

If you have installed new project dependencies, before commiting and creating any PR make sure to run pip freeze > requirements.txt.

But how do I make a pull request/participate?

If you've never made a pull request before, or participated in an open source project, we recommend taking a look at our Start Here Guidelines. This repo has everything you need to learn about open source, with a step-by-step guide to making your very first PR. Once you've got your feet wet, you're ready to come back and dive into Hacktoberfest fun!

Remember, you only need to make 4 pull requests to one of these open source project in the month of October, and you get an awesome Hacktoberfest shirt! Let's see if we can beat the record from last year!!

python-art's People

Contributors

henryvalbuena avatar finnci avatar dga avatar cotemaxime avatar aneagoie avatar jjaijg avatar gzine avatar nobi1007 avatar kavyantic avatar diegchav avatar dependabot[bot] avatar wmporter avatar shubhamai avatar nateonmission avatar hvijaycse avatar dwedigital avatar dppeykov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.