Skip to main content

Clinto

Project description

clinto

Build Status Deploy-To-Pypi codecov

Join the chat at https://gitter.im/wooey/clinto

This converts an assortment of python command line interfaces into a language agnostic build spec for usage in GUI creation.

Here's a basic usage:

from clinto import parser
specs = parser.Parser(script_path='/home/chris/Devel/pythomics/pythomics/scripts/proteinInference.py', script_name='Protein Inference')
specs.get_script_description()
{
  'name': 'Protein Inference Script',
  'path': '/home/chris/Devel/pythomics/pythomics/scripts/proteinInference.py'
  'description': '\nThis script will annotate a tab delimited text file with peptides with\ncorresponding proteins present in an annotation file, and can also\nuse this annotation to include iBAQ measures.\n',
  'inputs': {
    'parser_name': [{
      'group': 'optional arguments',
      'nodes': [{
          'choice_limit': None,
          'choices': None,
          'help': 'Threads to run',
          'model': 'IntegerField',
          'name': 'p',
          'param': '-p',
          'required': False,
          'type': 'text',
          'value': 1
        }, {
          'choice_limit': '1',
          'choices': None,
          'help': 'The fasta file to match peptides against.',
          'model': 'FileField',
          'name': 'fasta',
          'param': '-f',
          'required': False,
          'type': 'file',
          'upload': True
        }],
      },
      'group': 'Protein Grouping Options',
      'nodes': [{
          'checked': False,
          'choice_limit': 0,
          'choices': None,
          'help': 'Only group proteins with unique peptides',
          'model': 'BooleanField',
          'name': 'unique_only',
          'param': '--unique-only',
          'required': False,
          'type': 'checkbox'
        }, {
          'checked': False,
          'choice_limit': 0,
          'choices': None,
          'help': 'Write the position of the peptide matches.',
          'model': 'BooleanField',
          'name': 'position',
          'param': '--position',
          'required': False,
          'type': 'checkbox'
        }],
     ]
   },
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clinto-0.5.1rc1.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clinto-0.5.1rc1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file clinto-0.5.1rc1.tar.gz.

File metadata

  • Download URL: clinto-0.5.1rc1.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for clinto-0.5.1rc1.tar.gz
Algorithm Hash digest
SHA256 485235960ae8b51946b1caef8022c21a4cd8bc14f199c19193b544477d93ccd6
MD5 bca674327a20e2ae43cf5c33a281446e
BLAKE2b-256 df1117928f21d63cba6b62271318dbe593393436484de2870535f1c2959d7dd3

See more details on using hashes here.

File details

Details for the file clinto-0.5.1rc1-py3-none-any.whl.

File metadata

  • Download URL: clinto-0.5.1rc1-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for clinto-0.5.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 168d0e1c0136f8c701089b25ff814caf8273cc2f307fe28fd2c2e19c67027604
MD5 a272e81284f872525c4f01837cec2259
BLAKE2b-256 97eaa0c1665e4e6da4dc69f85423c13f2d3d7cf249dbe093a58060876dec042e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page