Skip to main content

Python Package Template

Project description

pycefrl

Identifying Python3 Code Level Using the CERFL Framework as Inspiration

What is this project about?

The goal of pycefrl is to create a tool capable of obtaining an evaluation inspired by the ''Common European Framework of Reference for Languages'' for code written in the Python programming language, version 3.

With this tool it is possible to analyze the level of GitHub repositories (and their developers) or code snippets in Python3.

How does it work?

To put it into operation you have to follow the steps below:

  1. Edit the 'configuration.cfg' file with the level assignment of your choice. If you want to use the default ones (recommended), just go to step 2.

  2. Execute the file 'dict.py' to generate a level dictionary.

    python3 dict.py
    
  3. Execute the main program 'pycerfl.py' in three different ways:

    • Analyze a directory.
      python3 pycerfl.py directory <name_path>
      
    • Analyze a GitHub repository.
      python3 pycerfl.py repo <name_urlclone>
      
    • Analyze a GitHub user.
      python3 pycerfl.py user <name_user>
      
  4. After that, this program will generate two types of formats to view the results:

    • JSON: data.json
    • CSV: data.csv

Both of them including following information:

  • Repository name
  • File name
  • Class of element
  • Start Line
  • End Line
  • Displacement
  • Level of element
  1. If you want to visualize the results on a web page:

    • Run the file 'main.js' to create the page 'index.html'. You will get one web page for each repository.
      node main.js
      

Project details


Download files

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

Source Distribution

pycefr-0.0.2.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

pycefr-0.0.2-py2.py3-none-any.whl (18.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pycefr-0.0.2.tar.gz.

File metadata

  • Download URL: pycefr-0.0.2.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pycefr-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1563b935ca3cba2d4182899837703d0fcec19697f2e0cd6cb74927be09097eb4
MD5 bfaee25700e17b87d7c1222ce9e9fca6
BLAKE2b-256 98ee866e08841f5b7ce1c5b35e4e0529bdc6ef507467614bc45ef95d24fc4787

See more details on using hashes here.

File details

Details for the file pycefr-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: pycefr-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pycefr-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6174093d90c2dc0b6ced2585a39120dd8bc21e9f05c624efeba1c69aebe17c41
MD5 bd0497ff803de43084924f34e11377d9
BLAKE2b-256 84b72075e8f6fdeb1ca561faf0fe36dd29118d623631df286e359cb19395b426

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