Code Monkey home page Code Monkey logo

buyrandom's Introduction

BUYRANDOM

A sample repo using Skeleton for Python projects that meet BONSAI guidelines.

Under development, follows the following:

Getting started

The first step is to choose your library name. You should check pypi to make sure your name is still available! Names should be lower case, and use underscores (_), not hyphens (-).

License

The default license is 3-clause BSD. You need to insert your name(s) in the LICENSE file.

Basic setup

Rename the directory your_library_name to the exact name of your library.

Update setup.py

  • Change every instance of your_library_name to the name of your library.
  • Change author, author_email, url, and the PyPI classifiers.

Executable

There is a skeleton executable using docopt in your_library_name/bin.

If you want to have a command line program that you can call from a terminal, you will need to do the following:

  • Rename the file your_library_name/bin/rename_me_cli.py
  • Change the entry_points section in setup.py to match the new directory and file names

Otherwise, do the following:

  • Delete the bin directory
  • Remove docopt from requirements.txt
  • Delete the entry_points section from setup.py.

Documentation

We recommend building documentation using sphinx, and hosting documentation on Github pages or read the docs. Github pages is easier to configure, while read the docs will build automatically with each pushed commit.

To start the documentation structure, first install sphinx using conda or pip. Then change to the docs directory, and run sphinx-quickstart. We suggest the following non-default configuration values (otherwise the default is fine):

  • autodoc: automatically insert docstrings from modules (y/n): y
  • mathjax: include math, rendered in the browser by MathJax (y/n): y
  • githubpages: create .nojekyll file to publish the document on GitHub pages (y/n): y if using Github pages

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.