You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

scroll

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scroll

SCROLL: Automatically generates documentation and unit-tests for python programs


Maintainers
1

Readme

SCROLL: Automatically generates documentation and unit-tests for python programs

Built with Data processing programs in mind

PyPI version Downloads Python 3.6+ Code style: black

How it works

This tool monitors your function calls and returns while you "exercise" you program (i.e run functional tests). It will collect this information (traces), record the order in which your functions run and generate documentation / tests using that information.

Design concept

The final goal is to enable a developer/user browser through documentation that flows in the order in which functions in the program run, hence the name SCROLL.

Installation

pip install scroll

To install using wheel files, Check in Distribution files

Example Usage

Lets say your file which contains the main entry function is called main.py

An example main file with an entry function

# main.py

def run():
    '''this is your singular entry function'''
    # your code here


if __name__ == '__main__':
    run()

Run the file using scroll on bash

scroll main.py

How about some guidelines?

  • There should be only one main entry function in your code

To-Do

  • add creating of url with class name / func name ancored on it
  • add creating of SCROLL.md that has scroll of all functions

Contributing

To get started contributing, visit the CONTRIBUTING GUIDE

Contributors and acknowledgment

  1. Edison Abahurire simicode

Similar Libraries that do Runtime-Introspection:

  1. pythoscope for Auto unit-test generation
  2. auger for Auto Unit-test generation
  3. MonkeyType for Auto Type hinting / Annotation
  4. hypothesis for Auto test-case generation

License

MIT

Credits

  • MonkeyType: When I got this idea, My first option was to just plagiarise their code ;) I also learned a lot from issue-conversations with @carljm.
  • Flit which this wonderful library is packaged with.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc