Skip to main content

A tiny web API framework based on Teleport

Project description

Cosmic

Cosmic is a tiny web API framework based on Teleport.

License

Copyright (C) 2014 8313547 Canada Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Changelog

Version 0.5.0

  • cosmic.Link type’s JSON form is a string containing a URL, the “href” part was moved into cosmic.BaseRepresentation. This makes the Link type friendlier for actions.

Version 0.4.2

(bugfix release, released on August 25st, 2014)

  • Actions with no accepts or returns parameters broke.

  • Move API object storage (cosmos) out of thread-locals. This broke Cosmic in multi-threaded environments.

  • Let API.run accept debug parameter.

  • Changed Server.unhandled_exception_hook behavior:
    • Pass request object as second parameter.

    • Don’t call it when Server.debug is true.

  • New thread-local API:
    • SafeGlobal gone in favor of SwappableDict and ThreadLocalDict

    • Swapping API instead of stack API.

    • thread_local context manager takes care of cleaning up.

Version 0.4.1

(bugfix release, released on August 21st, 2014)

  • Fixed cosmic.client.ClientLoggingMixin so that the log value is JSON serializable and the headers are represented consistently by lists of tuples.

  • Added CHANGES file

  • Improved long_description for PyPI

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

cosmic-0.5.0.tar.gz (298.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page