You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

negar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

negar

call negar in your python source code and error & text log to a file ...

0.6.0
pipPyPI
Maintainers
1

review

what is negar

call negar module in your python source code and write error log & text log to a file ...

installation

  • install by pip

    # linux
    
    sudo python3 -m pip install negar
    
    # windows
    
    py -m pip install negar
    
  • install by setup.py

    # linux
    
    sudo python3 -m pip install https://github.com/sys113/negar/archive/0.5.0.zip
    
    # windows
    
    py -m pip install https://github.com/sys113/negar/archive/0.5.0.zip
    

example

  • text function     example one | example two

  • error function   example one | example two

description

  • log_text

      # write 'log_text' to log file
      log_text = 'negar' 
    
  • line

      # set 'Flase' and 'True' value for show line python file in log file , default is False ... 
      line = True
    
  • date

      # set 'Flase' and 'True' value for show date in log file , default is True ... 
      line = True
    
  • time

      # set 'Flase' and 'True' value for time in log file , default is True ... 
      line = True
    
  • save

      # write log to 'negar-log.txt'
      save = 'negar-log.txt' 
    
  • size

      # set 'size' for log file 
      size = 2
    

tips

  • log file default size is 2 ...
  • log file size range is 1 ... 5 number ...
  • maximum size of python file name support is 15 character ...
  • maximum number to numbering lines support is 9999999 ...
  • maximum python source code line number support is 999999 ...
  • default log file name is log.txt ...
  • previously defined log file size can'not be resized!

copyright SYS113 - 2019.

license

MIT license , please see LICENSE file.

donate

  • for iranian users   :       id pay      -                    https://idpay.ir/sys113
  • for global users   :  BTC wallet id  -   149JgUmFqG6MvFg79Ldrvdk2bN35ByhMuw

contact me

thanks

  • mohamad moradiyani for negar module logo
  • Hamed 169 for optimize negar module source code

last word

hope this is negar useful to you and enjoy it.

Keywords

negar

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.