stringcase


Namestringcase JSON
Version 1.2.0 PyPI version JSON
download
home_pagehttps://github.com/okunishinishi/python-stringcase
SummaryString case converter.
upload_time2017-08-06 01:40:57
maintainer
docs_urlNone
authorTaka Okunishi
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            stringcase
==========

Convert string cases between camel case, pascal case, snake case etc...

|build_status_badge| |coverage_badge| |pypi_version_badge|

Usage
-----

.. code:: python

    import stringcase
    stringcase.camelcase('foo_bar_baz') # => "fooBarBaz"
    stringcase.camelcase('FooBarBaz') # => "fooBarBaz"
    stringcase.capitalcase('foo_bar_baz') # => "Foo_bar_baz"
    stringcase.capitalcase('FooBarBaz') # => "FooBarBaz"
    stringcase.constcase('foo_bar_baz') # => "FOO_BAR_BAZ"
    stringcase.constcase('FooBarBaz') # => "_FOO_BAR_BAZ"
    stringcase.lowercase('foo_bar_baz') # => "foo_bar_baz"
    stringcase.lowercase('FooBarBaz') # => "foobarbaz"
    stringcase.pascalcase('foo_bar_baz') # => "FooBarBaz"
    stringcase.pascalcase('FooBarBaz') # => "FooBarBaz"
    stringcase.pathcase('foo_bar_baz') # => "foo/bar/baz"
    stringcase.pathcase('FooBarBaz') # => "/foo/bar/baz"
    stringcase.sentencecase('foo_bar_baz') # => "Foo bar baz"
    stringcase.sentencecase('FooBarBaz') # => "Foo bar baz"
    stringcase.snakecase('foo_bar_baz') # => "foo_bar_baz"
    stringcase.snakecase('FooBarBaz') # => "_foo_bar_baz"
    stringcase.spinalcase('foo_bar_baz') # => "foo-bar-baz"
    stringcase.spinalcase('FooBarBaz') # => "-foo-bar-baz"
    stringcase.titlecase('foo_bar_baz') # => "Foo Bar Baz"
    stringcase.titlecase('FooBarBaz') # => " Foo Bar Baz"
    stringcase.trimcase('foo_bar_baz') # => "foo_bar_baz"
    stringcase.trimcase('FooBarBaz') # => "FooBarBaz"
    stringcase.uppercase('foo_bar_baz') # => "FOO_BAR_BAZ"
    stringcase.uppercase('FooBarBaz') # => "FOOBARBAZ"
    stringcase.alphanumcase('_Foo., Bar') # =>'FooBar'
    stringcase.alphanumcase('Foo_123 Bar!') # =>'Foo123Bar'


Install
-------

::

    $ pip install stringcase

License
-------

This software is released under the `MIT License <https://github.com/okunishinishi/python-stringcase/blob/master/LICENSE>`__.


Author
------

-  `Taka Okunishi <http://okunishitaka.com>`__

.. |build_status_badge| image:: http://img.shields.io/travis/okunishinishi/python-stringcase.svg?style=flat
   :target: http://travis-ci.org/okunishinishi/python-stringcase
.. |coverage_badge| image:: http://img.shields.io/coveralls/apeman-repo/apeman-task-contrib-coz.svg?style=flat
   :target: https://coveralls.io/github/apeman-repo/apeman-task-contrib-coz
.. |pypi_version_badge| image:: https://img.shields.io/pypi/v/stringcase.svg
   :target: https://pypi.python.org/pypi/stringcase
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/okunishinishi/python-stringcase",
    "name": "stringcase",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Taka Okunishi",
    "author_email": "okunishitaka.com@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f3/1f/1241aa3d66e8dc1612427b17885f5fcd9c9ee3079fc0d28e9a3aeeb36fa3/stringcase-1.2.0.tar.gz",
    "platform": "",
    "description": "stringcase\n==========\n\nConvert string cases between camel case, pascal case, snake case etc...\n\n|build_status_badge| |coverage_badge| |pypi_version_badge|\n\nUsage\n-----\n\n.. code:: python\n\n    import stringcase\n    stringcase.camelcase('foo_bar_baz') # => \"fooBarBaz\"\n    stringcase.camelcase('FooBarBaz') # => \"fooBarBaz\"\n    stringcase.capitalcase('foo_bar_baz') # => \"Foo_bar_baz\"\n    stringcase.capitalcase('FooBarBaz') # => \"FooBarBaz\"\n    stringcase.constcase('foo_bar_baz') # => \"FOO_BAR_BAZ\"\n    stringcase.constcase('FooBarBaz') # => \"_FOO_BAR_BAZ\"\n    stringcase.lowercase('foo_bar_baz') # => \"foo_bar_baz\"\n    stringcase.lowercase('FooBarBaz') # => \"foobarbaz\"\n    stringcase.pascalcase('foo_bar_baz') # => \"FooBarBaz\"\n    stringcase.pascalcase('FooBarBaz') # => \"FooBarBaz\"\n    stringcase.pathcase('foo_bar_baz') # => \"foo/bar/baz\"\n    stringcase.pathcase('FooBarBaz') # => \"/foo/bar/baz\"\n    stringcase.sentencecase('foo_bar_baz') # => \"Foo bar baz\"\n    stringcase.sentencecase('FooBarBaz') # => \"Foo bar baz\"\n    stringcase.snakecase('foo_bar_baz') # => \"foo_bar_baz\"\n    stringcase.snakecase('FooBarBaz') # => \"_foo_bar_baz\"\n    stringcase.spinalcase('foo_bar_baz') # => \"foo-bar-baz\"\n    stringcase.spinalcase('FooBarBaz') # => \"-foo-bar-baz\"\n    stringcase.titlecase('foo_bar_baz') # => \"Foo Bar Baz\"\n    stringcase.titlecase('FooBarBaz') # => \" Foo Bar Baz\"\n    stringcase.trimcase('foo_bar_baz') # => \"foo_bar_baz\"\n    stringcase.trimcase('FooBarBaz') # => \"FooBarBaz\"\n    stringcase.uppercase('foo_bar_baz') # => \"FOO_BAR_BAZ\"\n    stringcase.uppercase('FooBarBaz') # => \"FOOBARBAZ\"\n    stringcase.alphanumcase('_Foo., Bar') # =>'FooBar'\n    stringcase.alphanumcase('Foo_123 Bar!') # =>'Foo123Bar'\n\n\nInstall\n-------\n\n::\n\n    $ pip install stringcase\n\nLicense\n-------\n\nThis software is released under the `MIT License <https://github.com/okunishinishi/python-stringcase/blob/master/LICENSE>`__.\n\n\nAuthor\n------\n\n-  `Taka Okunishi <http://okunishitaka.com>`__\n\n.. |build_status_badge| image:: http://img.shields.io/travis/okunishinishi/python-stringcase.svg?style=flat\n   :target: http://travis-ci.org/okunishinishi/python-stringcase\n.. |coverage_badge| image:: http://img.shields.io/coveralls/apeman-repo/apeman-task-contrib-coz.svg?style=flat\n   :target: https://coveralls.io/github/apeman-repo/apeman-task-contrib-coz\n.. |pypi_version_badge| image:: https://img.shields.io/pypi/v/stringcase.svg\n   :target: https://pypi.python.org/pypi/stringcase",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "String case converter.",
    "version": "1.2.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "5cb2a0b28f227f19dc830b66f6e46b52",
                "sha256": "48a06980661908efe8d9d34eab2b6c13aefa2163b3ced26972902e3bdfd87008"
            },
            "downloads": -1,
            "filename": "stringcase-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5cb2a0b28f227f19dc830b66f6e46b52",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2958,
            "upload_time": "2017-08-06T01:40:57",
            "upload_time_iso_8601": "2017-08-06T01:40:57.021784Z",
            "url": "https://files.pythonhosted.org/packages/f3/1f/1241aa3d66e8dc1612427b17885f5fcd9c9ee3079fc0d28e9a3aeeb36fa3/stringcase-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2017-08-06 01:40:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "okunishinishi",
    "github_project": "python-stringcase",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "stringcase"
}
        
Elapsed time: 0.01706s