semvec/pypi-packages huggingface dataset:
MT-PY-ErrorLogging 0.0.1
A Mouritech package
Requires Python: >=3.7

# sample package on Logging Error 


# Project Title

Mouritech

package name : Mouritech_LoggingErrorMT_PY_ErrorLogging

Creating custom package for Logging Errorin python.
This is the project ,Whenever you need to check the level of Errors in a code . 



## Technologie 
Python



## Installation

Install my-project with Python
Install  MT_PY_ErrorLogging
```bash
  pip install   MT_PY_ErrorLogging
  cd   MT_PY_ErrorLogging
```

(globally)
pip install MT_PY_ErrorLogging

## Steps 




pip install  MT_PY_ErrorLogging

(or)

pip install MT_PY_ErrorLogging

from MT_PY_ErrorLogging.MT_Errorlogging import MT_Logger
from MT_ErrorLogging import MT_Logger

MT_Logger(

)





## Authors

- [@Sirisha](https://www.github.com/octokatherine)



## Used By

This project is used by the following Cases:

- Projects :-Logging Error is one of the debugging tool which is used to track the log levels of the cod e(error levels of the code )
- 




# Receiver Example :

pip install  MT_PY_ErrorLogging


from MT_PY_ErrorLogging.MT_Errorlogging import MT_Logger
from MT_Errorlogging import MT_PY_ErrorLogging

MT_PY_ErrorLogging(

)


# this is the file here we are doing some testcase purpose

import logging
  #we are importing our package here
from MT_PY_ErrorLogging.MT_Errorlogging import MT_Logger
# Create a logger
logger = logging.getLogger("fileerrors:")
logger.setLevel(logging.ERROR)

# Define a custom error handler
class MT_LoggerHandler(logging.Handler):                     # creating a class
    def emit(self, record):                                          # creating a function
        if isinstance(record.exc_info[1], LoggerDemoConsole):
            print(f"Custom Error: {record.msg}")
            

# Add the custom error handler to the logger
logger.addHandler(MT_LoggerHandler())      


# Output:

06/01/2023 05:31:15PM - LoggerDemoConsoleINFO: info message
06/01/2023 05:31:15PM - LoggerDemoConsoleWARNING: warn message
06/01/2023 05:31:15PM - LoggerDemoConsoleERROR: error message
06/01/2023 05:31:15PM - LoggerDemoConsoleCRITICAL: critical message
hello_jupyter_proxy 0.2
A minimal example server to run with jupyter-server-proxy

Jupyter Server Proxy Demo
=========================

This is a demo package showing how to run a web app through
`Jupyter Server Proxy <https://jupyter-server-proxy.readthedocs.io/en/latest/>`_.

This mechanism allows a user to run a separate web app through JupyterHub.
To try it, install this package into the same Python environment which is
used to launch your single-user server::

    pip install hello_jupyter_proxy

If your server is already running use the JupyterHub control panel
(``/hub/home``) to stop and start it. You should have a new 'hello' option in
the 'New' menu (classic notebook) or the launcher (Jupyterlab). You can also
go directly to ``https://(your-jhub-server)/user-redirect/hello/`` .

Building applications to proxy
------------------------------

This is meant as a starting point for building useful applications to run in
Jupyter Server Proxy. See `the JSP docs
<https://jupyter-server-proxy.readthedocs.io/en/latest/>`_ and especially the
`examples page <https://jupyter-server-proxy.readthedocs.io/en/latest/examples.html>`_
for more information.

For real web applications in Python, you will want a web framework rather than
the low-level ``http.server`` module. There are many choices, but `Tornado
<https://www.tornadoweb.org/en/stable/>`_ (used by Jupyter) and `Flask
<https://palletsprojects.com/p/flask/>`_ are two well known ones.

**Security**: Once user A launches your application through Jupyter, it is
listening on a TCP port, and user B can also connect to it and send requests.
You might want to consider:

- Limiting what the application can do and what information it can retrieve, so
  accessing another user's server is not too dangerous.
- Listening only on localhost (as in this example), to limit access to only
  users who can log into the same machine.
- Finding some way to verify that the user sending the request matches the user
  which the application is running as.

Which measures make sense will depend on your application and the environment
in which you expect to use it.