Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andresmweber/nomenclate-api
API for Nomenclate with Flask Server
https://github.com/andresmweber/nomenclate-api
Last synced: about 1 month ago
JSON representation
API for Nomenclate with Flask Server
- Host: GitHub
- URL: https://github.com/andresmweber/nomenclate-api
- Owner: AndresMWeber
- License: mit
- Created: 2019-06-23T19:33:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:48:35.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T09:49:31.497Z (over 1 year ago)
- Language: Python
- Size: 58.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Nomenclate
A tool set for automating and generating strings based on arbitrary user-defined naming conventions
Online Documentation (ReadTheDocs)Introduction
=============Nomenclate is a tool which creates persistent objects that can be used to generate strings that follow naming
conventions that you designate.
There are sets of current naming conventions (format strings) that can be replaced or extended following certain rules
for creation. You can add arbitrary tokens as needed and register token filtering of your own designation.There is a full set of YAML defined suffix/side substitution strings as found in ``env.yml``.
If you want you can create your own .yml file that you will pass to a Nomenclate instance to have your own configuration.Features
--------
- Applies a naming convention with arbitrary syntax/grammar to the formatting of string tokens
- Top down parsing of format string given token-specific grammar rule classes that are extensible
- Persistent state object instances
- Up to date with online help docs
- User-customizable YAML/human-readable config file
- Easy object property or dictionary state manipulation
- Cross-Python compatible: Tested and working with Python 2.7 and 3.5
- Cross-Platform compatible: Works under Linux, Mac OS ,Windows environments
- Full module/class documentation
- Sensible token value entry/conversion (like ``side='left'`` with automatic token syntax replacement)Concept Definitions
-------------------
token
: A component of the format string which is a meaningful symbol/definition pair that will be filtered by
a grammar of regular expressions.
A simplified representation could be token=value wherein the token (as found in the format string) will be resolved
to the value as is adheres to the token's syntax/grammar rulesformat string
: A string that represents a series of tokens separated with arbitrary delimiters.e.g. - ``side_location_nameDecoratorVar_childtype_purpose_type``
Note: Nomenclate automatically supports camelCasing the tokens to separate them as a natural delimiter.
`For a review of parsing/composition look here `_
Installation
============
#### Windows, etc.A universal installation method (that works on Windows, Mac OS X, Linux, ..., and always provides the latest version) is to use `pip`:
.. code-block:: bash
# Make sure we have an up-to-date version of pip and setuptools:
$ pip install --upgrade pip setuptools
$ pip install nomenclateapiUsage
=====
#### Python Package UsageUse this tool via package level functions
.. code-block:: python
nada
Version Support
===============
Currently this package supports Python 2.7, 3.5, 3.6, 3.7Acknowledgments
===============Attribution
===========