Code Monkey home page Code Monkey logo

pydsa's Introduction

PyDSA

Build Status Join the chat at https://gitter.im/pydsa/pydsa Documentation Status

Mailing List: https://groups.google.com/forum/#!forum/pydsa

Python Data Structure and Algorithms Library (α-mode)

  1. Installation
  2. Usage
  3. Development Environment
  4. Contributing

Installation

To install PyDSA, simply run:

$ python setup.py install

Usage

In [1]: from pydsa import quick_sort

In [2]: a = [2, 10, 10, 2, 7, 7, 2, 5, 4, 10]

In [3]: quick_sort(a)
Out[3]: [2, 2, 2, 4, 5, 7, 7, 10, 10, 10]
In [1]: from pydsa import merge_sort

In [2]: b = [5, 1, 2, 3, 4, 3, 9, 7, 8, 5]

In [3]: merge_sort(b)
Out[3]: [1, 2, 3, 3, 4, 5, 5, 7, 8, 9]

Development Environment

The source code is managed with the Git version control system. To get the latest development version and access to the full repository, clone the repository from Github with:

$ git clone https://github.com/pydsa/pydsa.git

You should then install the development requirements:

pip install -r requirements.txt

To run tests:

$ py.test

Code Analysis

coala is used to lint and format code.

To analyze code using coala:

$ coala

There also other checks that you can run with coala:

$ coala pylint # checks the whole codebase against pylint.
$ coala invalidlinks # checks docs for invalid links.
$ coala imports # sort imports

Contributing

There are multiple ways you can contibute to Pydsa

  • Add missing documentation.
  • Add/improve efficiency of algorithms or Data structures.
  • Report bugs.
  • Request/Submit new algorithms.

Use github's Pull request/issues feature for all contributions.

pydsa's People

Contributors

aktech avatar mansigoel avatar srishtisengupta avatar soummyaah avatar iamneha avatar goelakash avatar rehassachdeva avatar sanketdg avatar malayaleecoder avatar sumith1896 avatar rahulroxx avatar shubhamrajput avatar d-rishabh avatar yatingupta10 avatar ironmaniiith avatar bitdeli-chef avatar curiouslearner avatar a2batic avatar gitter-badger avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  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.