All Projects → spadarian → docblock-python

spadarian / docblock-python

Licence: GPL-2.0 license
Atom plugin to insert documentation blocks for python functions

Programming Languages

javascript
184084 projects - #8 most used programming language
Less
1899 projects

Projects that are alternatives of or similar to docblock-python

atomic-bohr-model
A d3 powered customizable and animated atomic bohr model
Stars: ✭ 27 (+22.73%)
Mutual labels:  atom
MP4Parse
C++ library for MP4 file parsing.
Stars: ✭ 55 (+150%)
Mutual labels:  atom
atom-python-isort
Atom.io plugin to sort Python imports
Stars: ✭ 19 (-13.64%)
Mutual labels:  atom
simplepie-ng
Don't use this yet.
Stars: ✭ 41 (+86.36%)
Mutual labels:  atom
Xi-UI
minimal monochrome UI theme for Atom
Stars: ✭ 26 (+18.18%)
Mutual labels:  atom
json-feed-viewer
The world's first JSON feed viewer 🥇
Stars: ✭ 40 (+81.82%)
Mutual labels:  atom
atom-ts-transpiler
A transpiler for Atom packages that processes code with TypeScript
Stars: ✭ 14 (-36.36%)
Mutual labels:  atom
webfeed
A dart package for parsing RSS & Atom feed
Stars: ✭ 92 (+318.18%)
Mutual labels:  atom
feed2maildir
📬 Read RSS/Atom feeds in your favourite, maildir-compatible email client.
Stars: ✭ 15 (-31.82%)
Mutual labels:  atom
markown-utilities
Markdown stylesheets and other minutiae
Stars: ✭ 17 (-22.73%)
Mutual labels:  atom
atom-ide-scala
Scala & Dotty support for Atom IDE (🧟‍♂️ zombie repo)
Stars: ✭ 47 (+113.64%)
Mutual labels:  atom
atom-language-r
R syntax for Atom
Stars: ✭ 33 (+50%)
Mutual labels:  atom
django-feed-reader
An RSS/Atom/JSONFeed reading + storing library for Django
Stars: ✭ 21 (-4.55%)
Mutual labels:  atom
wordpress-suite
WordPress Suite is an ever expanding suite of Wordpress tools, accessible right from atom's interface!
Stars: ✭ 13 (-40.91%)
Mutual labels:  atom
Atom-as-a-Perl6-IDE
Packages and Plugins with Detailed Explanation on Configuring Atom as a Raku IDE
Stars: ✭ 15 (-31.82%)
Mutual labels:  atom
atom-django
Build Django apps faster with Atom.
Stars: ✭ 29 (+31.82%)
Mutual labels:  atom
FeedReader
C# RSS and ATOM Feed reader library. Supports RSS 0.91, 0.92, 1.0, 2.0 and ATOM. Tested with multiple languages and feeds.
Stars: ✭ 221 (+904.55%)
Mutual labels:  atom
atom-double-tag
An Atom Editor package for faster HTML tag editing
Stars: ✭ 62 (+181.82%)
Mutual labels:  atom
linter-pylama
Lint python in the Atom on the fly, using pylama
Stars: ✭ 22 (+0%)
Mutual labels:  atom
atom-discord
Integrate with Discord and show Rich Presence information.
Stars: ✭ 107 (+386.36%)
Mutual labels:  atom

Python DocBlock Package

Build Status Plugin installs! Package version!

DocBlock is a package for Atom which helps you to document your python code.

Demo

Installation

From the command line run apm install docblock-python. You can also install it from the Atom Package manager.

Available styles

Project configuration file

It is possible to set configurations for different projects. You just need to add a .docblock.json file to the project root directory including any of the package settings. Below you can see an example JSON with all the settings set to their default value.

{
  "style": "numpy",
  "indent": true,
  "parameters": true,
  "quote_type": "double",
  "default_desc_text": true,
  "use_defaults": true,
  "returns": true,
  "raises": false,
  "examples": false,
  "types": {
    "use_types": true,
    "separate_types": false
  },
  "lint": false
}

You can generate the .docblock.json file by clicking on the Packages -> docblock-python -> Save current settings menu.

A full list of the options and their possible values are described below:

Option Value Description
style "numpy", "google", "sphinx" or "epytext" Docblock style
indent true or false Initial indent
parameters true or false Describe parameters
quote_type "double" or "single" Type of triple quotes to use
default_desc_text true or false Show default description text ("Description of...")
use_defaults true or false Add default value to parameter description
returns true or false Describe returned value
raises true or false Describe raised exceptions
examples true or false Should illustrate how to use the function/class (doctest)
types.use_types true or false Parameter and attribute type
types.separate_types true or false Show types in a different line (sphinx style only)
lint true or false Enable lint to show missing documentation (experimental)

Lint support

This experimental feature should show you when the documentation is not up-to-date. At the moment, it only checks if the current parameters and attributes are documented (not if you are documenting something that doesn't exist).

In order to this feature to work, you need to install Linter and enable the option in docblock-python settings.

Lint

TODO

This is a non-exhaustive list of future additions. If you have any suggestions, drop me an email.

  • Add Google style
  • Add Sphinx style
  • Scan for Exceptions
  • Convert between styles
  • Add support for Type Hints (PEP 484)
  • Add lint support to show incomplete documentation
  • Project configuration file
  • Add menu item to write current settings to config file.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].