Find the percentage of programming languages used in your project
Project description
Polyglot
Find the percentage of programming languages used in your project
Documentation
·
Report a Bug
·
Request Feature
Table of Contents
🙉 About The Project
Find the percentage of programming languages used in your project
⚡ Getting Started
In order to get started, please install pip.
📝 Prerequisites
- pip
sudo apt-get install python3-pip
⬇️ Installation
- Install pip packages
pip3 install python-polyglot
🎉 Usage
Once Polyglot is all setup and good to go, implementing is easy as pie.
🔰 Initial Setup
You can initialize Polyglot with the example below:
from polyglot.core import Polyglot
dirname = "path/to/directory"
polyglot = Polyglot(dirname)
polyglot.show(display=True)
+-------------------------+-------+
| Language | files |
+-------------------------+-------+
| Ignore List | 5.88 |
| GCC Machine Description | 11.76 |
| Unknown | 5.88 |
| Text | 5.88 |
| Python | 64.71 |
| JSON | 5.88 |
+-------------------------+-------+
+-------------------------+-------+
| Language | lines |
+-------------------------+-------+
| Ignore List | 17.22 |
| GCC Machine Description | 22.24 |
| Unknown | 2.83 |
| Text | 0.26 |
| Python | 57.07 |
| JSON | 0.39 |
+-------------------------+-------+
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature
) - Commit your Changes (
git commit -m 'Add some features'
) - Push to the Branch (
git push origin feature
) - Open a Pull Request
📰 License
Distributed under the MIT license. See LICENSE
for more information.
📞 Contact
Pranav Baburaj - pranavbaburaj@zohomail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.