Giter Site home page Giter Site logo

jsprint's Introduction

๐Ÿš€ JSPrint

An introduction to JSPrint.

JSPrint is a custom Python package that brings the JavaScript logging system to Python.

๐Ÿ“‹ โ€ข Badges

Our statistics, information and more.

PyPI - Python Version(s) PyPI - Version PyPI - Status PyPI - Downloads PyPI - Format

GitHub commit activity GitHub contributors GitHub pull requests GitHub issues GitHub forks

๐Ÿ“ฆ โ€ข Installation

JSprint is available on PyPI, so you can install it with pip.

pip install jsprint

Or

pip3 install jsprint

๐Ÿ“š โ€ข Usage

Example of using JSPrint.

# This code demonstrates how to use the JSP class to log messages with different levels of severity.

# Import JSPrint
from jsprint import JSP

# Create a new instance of the JSP class with a log level of "info"
logger = JSP(log_level="log")

# Log a message with each of the available levels
logger.log("This is a log message")
logger.warn("This is a warning message")
logger.error("This is an error message")
logger.info("This is an info message")
logger.success("This is a success message")
logger.debug("This is a debug message")
logger.trace("This is a trace message")

# Edit the log level
set_log_level("warn")

๐Ÿ“ โ€ข Documentation

JSPrint documentation is still in it's early stages.

View the documentation here

๐Ÿ“œ โ€ข License

JSPrint is licensed under the MIT license.

MIT License

Copyright (c) 2023 NotAussie

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.

jsprint's People

Contributors

notaussie avatar

Watchers

 avatar

jsprint's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.