GithubHelp home page GithubHelp logo

sednabcn / python-package-explained Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 46 KB

This repository describes the methodology to build a minimal python package

Python 100.00%
python3 package module class subclass script command-line-tool

python-package-explained's Introduction

Mypackage

Mypackage provides a method to generate random distribution samples based on the Normal, Poisson and Binomial distribution. Typical usage often looks like this:

#!/usr/bin/env python

from mypackage import srcipt-command_line
from mypackage import Gen
from mypackage.subpackage.module import draw_sample, descriptive_sample

Installation

-Download the package from https://github.com/sednabcn/Python-Package-Explained -Make the dir MyPackage and put into it all files downloaded Install locally: pip3 install . Install to the system: sudo python setup.py install

mypackage --------

To use (with caution), simply do:: sedna@hp:~$ python3.8 Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import mypackage >>> import mypackage.subpackage >>> import mypackage.tests >>> import mypackage.subpackage.module >>> from mypackage.main import Gen >>> from mypackage.subpackage.module import summarize

test_generated_samples (mypackage.tests.test_mypackage.Testmypackage) ... ok

----------------------------------------------------------------------Ran 1 test in 1.897s

OK

script

To use at the prompt (command-line) sedna@hp:$ script-command_line --Normal 1000 0.0 0.1 30 --Poisson 1000 5 None 14 --Binomial 20000 9 0.1 30 Descriptive Method for Normal Distribution: min: -0.3499113924055577 max: 0.30747293791217245 mean: -0.004195217226063487 std: 0.10254739392393213 Descriptive Method for Poisson Distribution: min: 0 max: 16 mean: 4.941 std: 2.224751446791304 Descriptive Method for Binomial Distribution: min: 0 max: 6 mean: 0.89995 std: 0.89528766187187

python-package-explained's People

Contributors

sednabcn avatar

Watchers

 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.