Code Monkey home page Code Monkey logo

dotapatch's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ I'm currently working on Digital Twin for Digital Substation Communication Networks
  • ๐Ÿ“ก I'm part of @midiacom and @FriendsLabUFF
  • ๐ŸŒฑ My interests are:
    • Python (mainly communications, sockets and protocols) and Linux;
    • Smart Grid (IEC 61850), MMS, GOOSE and SV;
    • Digital Twin, Digital Substations and SDN (Software-Defined Network);
    • I also research 5G sometimes.
  • ๐Ÿค” I'm looking for help with Python speedup (probably with Rust)
  • ๐Ÿ’ฌ I can help you with: Python and IEC 61850
  • ๐Ÿ“ซ How to reach me: [email protected]
  • ๐Ÿ˜„ Pronouns: he/him โ™‚๏ธ

Here follows some of my opensource work:

IEC 61850 for Python

Python Examples

Other repos

dotapatch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

luizperes

dotapatch's Issues

Test

Testing Projects' tab

Add patch change by hero

Describe the solution you'd like
I wonder if you can add a feature: parse change by hero.

Describe alternatives you've considered
It will show all the changes from patch 6.88e to 7.19 for a selected hero.

Additional context
Sent by u/5odin

Initial Update

Hi ๐Ÿ‘Š

This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.

Once you have closed this issue, I'll create seperate pull requests for every update as soon as I find one.

That's it for now!

Happy merging! ๐Ÿค–

Implement log

using_log.py

import logging
from logging import getLevelName as get_level
import argparse
import aux


parser = argparse.ArgumentParser(description='A test script')
parser.add_argument(
    '--debug', help='debug output verbose',
    action='store_const', dest='log_level', const='DEBUG', default='INFO')
parser.add_argument(
    '--save-log', help='save log output',
    action='store_true', dest='save_log')
args = parser.parse_args()

log_config = {
    'format': '%(levelname)s %(message)s',
    'level': get_level(args.log_level)
}

if args.save_log:
    save_config = {
        'filename': 'example.log', 'filemode': 'w',
        'format': '''
%(asctime)s (%(name)s.%(module)s, line %(lineno)d)
%(levelname)s %(message)s'''
    }
    log_config.update(save_config)

logging.basicConfig(**log_config)
logger = logging.getLogger('dotapatch')
logger.debug('var x = 1')
logger.info('next message will be a warning')
logger.warning('about to go into dotapatch.aux')
aux.main()
logger.critical('cant recovery')

aux.py

import logging


def main():
    logger = logging.getLogger('dotapatch')
    logger.error('error in aux')

Initial Update

Hi ๐Ÿ‘Š

This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.

Once you have closed this issue, I'll create separate pull requests for every update as soon as I find one.

That's it for now!

Happy merging! ๐Ÿค–

Create '--force-data-update'

--file should not be required.

  1. If --force-data-update was called alone, update data/*data
  2. If --force-data-update was called alongside --file, update data/*data and outupt <filename>.html
  3. If --file was called alone, output <filename>.html
  4. If none of the above, ask for user input('Enter the filename: ')

Improve setup.py

REMEMBER

0

Use twine -r pypitest

1

maybe add

    'Operating System :: MacOS',
    'Operating System :: Microsoft :: Windows',

also

    Programming Language :: Python
    Programming Language :: Python :: 2
    Programming Language :: Python :: 2.3
    Programming Language :: Python :: 2.4
    Programming Language :: Python :: 2.5
    Programming Language :: Python :: 2.6
    Programming Language :: Python :: 2.7
    Programming Language :: Python :: 3
    Programming Language :: Python :: 3.0
    Programming Language :: Python :: 3.1
    Programming Language :: Python :: 3.2
    Programming Language :: Python :: 3.3
    Programming Language :: Python :: 3.4
    Programming Language :: Python :: 3.5
    Programming Language :: Python :: 3.6

2

Come up with a way to

  1. README.md to use relative links
  2. PyPIREADME.md to use absolute links

3

Update README.md

  • dotapatch usage (showing the --help and what each option do)
  • test dotapatch inside a locked dir (that requires sudo) to see what error it throws
  • installing
    • pip install
    • setup.py install
  • tests (tox)
  • add pip badge

4

Create FAQ (and link it in READMEs) for helping people use pip install --user (fixing ubuntu $PATH)

Create a logging helper class

This is an ideia.

Description

Create a helper class to manage the app's logging.

Example:

def _critical(self, msg, err):
    self.logger.error(msg)
    self.logger.critical('{}: {}'.format(err.__class__.__name__, err))
    raise SystemExit(-1)

This is from model.py but could be used by other classes as well.

Initial Update

Hi ๐Ÿ‘Š

This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.

Once you have closed this issue, I'll create separate pull requests for every update as soon as I find one.

That's it for now!

Happy merging! ๐Ÿค–

Add 'parser' argument for generating standalone HTML code

The generated HTML relies on the content of the css/ folder (css, fonts and images).
Add an argument to allow the generation of HTML code which points to remote css, fonts and images.

P.S. #6 (Create a 'theme' file and add '--theme' argument) should help to solve this.

Add try on __main__.py

This is an ideia.

Description

Remove raise raise SystemExit(-1), and only raise true exceptions. Handle the exceptions on __main__.py:

dotapatch = Dotapatch(args.file, args.template)

try:
    sys_exit(dotapatch.parse())
except (ExceptionType1, ExceptionType1, ExceptionTypeEtc) as err:
    handle(err)

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.