Skip to main content

No project description provided

Project description

react-stats

react-stats is a Python package offering a collection of utilities for React.js developers. With just three commands, manage your assets and get statistics on your codebase.

๐Ÿช„ How to Install

install:

pip install react-stats

to update:

pip install react-stats --upgrade

๐Ÿ˜ What you can do

* fun statistics about your project

* instant asset structure

* automatic asset manager

โŒจ 1 of 3 Get-Stats

You'll get a stats.txt file with statstics about your project such as:

  • language usage chart
  • file overview table
  • hook overview table

run command:

get-stats

language usage:

Python   | 83.47% โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–‘โ–‘โ–‘
Markdown |  8.67% โ–“โ–“โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘
Text     |  7.86% โ–“โ–“โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘
                                  100%

file usage:

====================  =======  ==========
files                   lines  language
====================  =======  ==========
get_stats.py              167  Python
auto_assets.py             43  Python
make_assets.py             42  Python
README.md                  37  Markdown
setup.py                   27  Python
exts.py                    20  Python
SOURCES.txt                17  Text
ahoy.py                    10  Python
printr.py                   8  Python
entry_points.txt            6  Text
requires.txt                5  Text
top_level.txt               1  Text
__init__.py                 0  Python
dependency_links.txt        0  Text
====================  =======  ==========

hook usage:

 file               |   all hooks |   useState |   useEffect |   useContext |   otherHooks |   customHooks
--------------------+-------------+------------+-------------+--------------+--------------+---------------
 Home.js            |          10 |          6 |           0 |            2 |            0 |             2
 Forms.js           |           5 |          2 |           0 |            1 |            0 |             2
 Register.js        |           4 |          3 |           0 |            1 |            0 |             0
 Login.js           |           4 |          3 |           0 |            1 |            0 |             0
 useLocalStorage.js |           2 |          1 |           0 |            0 |            0 |             1
 FormSlider.js      |           2 |          1 |           0 |            0 |            0 |             1
 NodoForm.js        |           1 |          0 |           0 |            0 |            0 |             1
 FormChecks.js      |           1 |          0 |           0 |            0 |            0 |             1
 useCurrentDate.js  |           1 |          1 |           0 |            0 |            0 |             0
 userContext.js     |           1 |          1 |           0 |            0 |            0 |             0
 HappinessForm.js   |           1 |          0 |           0 |            0 |            0 |             1
 WealthForm.js      |           1 |          0 |           0 |            0 |            0 |             1
 HealthForm.js      |           1 |          0 |           0 |            0 |            0 |             1
 FormCounters.js    |           1 |          0 |           0 |            0 |            0 |             1
 IntroPage.js       |           1 |          0 |           0 |            0 |            0 |             1
 Scores.js          |           1 |          1 |           0 |            0 |            0 |             0
 LogReg2.js         |           1 |          1 |           0 |            0 |            0 |             0

โŒจ 2 of 3 Make-Assets

Run the following command to get a asset folder structure specified for dealing with assets.

command:

make-assets

folder structure:

โ”œโ”€โ”€ assets
โ”‚   โ”œโ”€โ”€ audio
โ”‚   โ”œโ”€โ”€ data
โ”‚   โ”œโ”€โ”€ docs
โ”‚   โ”œโ”€โ”€ fonts
โ”‚   โ”œโ”€โ”€ icons
โ”‚   โ”œโ”€โ”€ images
โ”‚   โ””โ”€โ”€ video

โŒจ 3 of 3 Auto-Assets

For automatically organizing your assets including docs, images, videos, data...

run command:

auto-assets

Now, when you create a file in the root directory it will be automatically moved to the correct subfolder in the assets folder.

If you haven't run make-assets, than a subfolder will still be automatically created.

This command will keep running in the background. You can stop it anytime with Ctrl+C.

Contributing

If you encounter any issues or have suggestions for improvements, please open an issue or a pull request.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

react_stats-0.86-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file react_stats-0.86-py3-none-any.whl.

File metadata

  • Download URL: react_stats-0.86-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for react_stats-0.86-py3-none-any.whl
Algorithm Hash digest
SHA256 b413ea27dfa4cddcd098c952e290c8c98c213ee76e06c462dd04f05def389c9c
MD5 35287b2f104fe540e4471a9aa547470b
BLAKE2b-256 a896979a80f7476edefaf08571292874668396744566d658fc852ed88c1320b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page