Coder Social home page Coder Social logo

beetcode's People

Contributors

biztudio avatar cstudiox avatar dependabot[bot] avatar gitechlab avatar

Stargazers

 avatar

Watchers

 avatar

beetcode's Issues

Suggest to loosen the dependency on pysnooper

Hi, your project beetcode requires "pysnooper==0.0.15" in its dependency. After analyzing the source code, we found that some other versions of pysnooper can also be suitable without affecting your project, i.e., pysnooper 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.0.20. Therefore, we suggest to loosen the dependency on pysnooper from "pysnooper==0.0.15" to "pysnooper>=0.0.7,<=0.0.20" to avoid any possible conflict for importing more packages or for downstream projects that may use beetcode.

May I pull a request to loosen the dependency on pysnooper?

By the way, could you please tell us whether such dependency analysis may be potentially helpful for maintaining dependencies easier during your development?



For your reference, here are details in our analysis.

Your project beetcode(commit id: 039b9fd) directly uses 1 APIs from package pysnooper.

pysnooper.pysnooper.snoop

From which, 3 functions are then indirectly called, including 2 pysnooper's internal APIs and 1 outsider APIs, as follows (neglecting some repeated function occurrences).

[/biztudio/beetcode]
+--pysnooper.pysnooper.snoop
|      +--pysnooper.pysnooper.get_write_function
|      +--pysnooper.tracer.Tracer.__init__
|      |      +--collections.defaultdict

We scan pysnooper's versions among [0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.0.20] and 0.0.15, the changing functions (diffs being listed below) have none intersection with any function or API we mentioned above (either directly or indirectly called by this project).

diff: 0.0.15(original) 0.0.7
['pysnooper.tracer.get_local_reprs', 'pysnooper.tracer.Tracer', 'pysnooper.tracer.Tracer.trace', 'pysnooper.tracer.get_shortish_repr']

diff: 0.0.15(original) 0.0.8
['pysnooper.tracer.get_local_reprs', 'pysnooper.tracer.Tracer', 'pysnooper.tracer.Tracer.trace', 'pysnooper.tracer.get_shortish_repr']

diff: 0.0.15(original) 0.0.9
['pysnooper.tracer.get_local_reprs', 'pysnooper.tracer.Tracer', 'pysnooper.tracer.Tracer.trace', 'pysnooper.tracer.get_shortish_repr']

diff: 0.0.15(original) 0.0.10
['pysnooper.tracer.get_local_reprs', 'pysnooper.tracer.Tracer', 'pysnooper.tracer.Tracer.trace', 'pysnooper.tracer.get_shortish_repr']

diff: 0.0.15(original) 0.0.11
['pysnooper.tracer.get_local_reprs', 'pysnooper.tracer.Tracer', 'pysnooper.tracer.Tracer.trace', 'pysnooper.tracer.get_shortish_repr']

diff: 0.0.15(original) 0.0.12
['pysnooper.tracer.get_local_reprs', 'pysnooper.tracer.Tracer', 'pysnooper.tracer.Tracer.trace', 'pysnooper.tracer.get_shortish_repr']

diff: 0.0.15(original) 0.0.13
['pysnooper.tracer.get_local_reprs', 'pysnooper.tracer.Tracer', 'pysnooper.tracer.Tracer.trace', 'pysnooper.tracer.get_shortish_repr']

diff: 0.0.15(original) 0.0.14
['pysnooper.tracer.Tracer', 'pysnooper.tracer.Tracer.trace']

diff: 0.0.15(original) 0.0.16
[](no clear difference between the source codes of two versions)

diff: 0.0.15(original) 0.0.17
['pysnooper.tracer.UnavailableSource.__getitem__', 'pysnooper.tracer.UnavailableSource', 'pysnooper.tracer.get_source_from_frame']

diff: 0.0.15(original) 0.0.18
['pysnooper.tracer.UnavailableSource.__getitem__', 'pysnooper.tracer.UnavailableSource', 'pysnooper.tracer.get_source_from_frame']

diff: 0.0.15(original) 0.0.19
['pysnooper.third_party.six._SixMetaPathImporter.__get_module', 'pysnooper.third_party.decorator.decorate', 'pysnooper.third_party.six.itervalues', 'pysnooper.third_party.six._SixMetaPathImporter.get_code', 'pysnooper.third_party.six.Module_six_moves_urllib.__dir__', 'pysnooper.third_party.six.X', 'pysnooper.third_party.six.assertRegex', 'pysnooper.third_party.decorator.decorator', 'pysnooper.third_party.six.Module_six_moves_urllib_error', 'pysnooper.third_party.six.iteritems', 'pysnooper.third_party.six.ensure_str', 'pysnooper.third_party.six.raise_from', 'pysnooper.third_party.decorator.ContextManager.__call__', 'pysnooper.third_party.six.ensure_binary', 'pysnooper.third_party.six.Iterator.next', 'pysnooper.third_party.six.print_', 'pysnooper.third_party.six.indexbytes', 'pysnooper.third_party.six._SixMetaPathImporter', 'pysnooper.third_party.six._import_module', 'pysnooper.third_party.six.add_move', 'pysnooper.third_party.six._LazyModule.__init__', 'pysnooper.third_party.six.X.__len__', 'pysnooper.third_party.six.wraps', 'pysnooper.third_party.six.Module_six_moves_urllib_response', 'pysnooper.third_party.decorator.append', 'pysnooper.third_party.six._LazyDescr', 'pysnooper.third_party.decorator.get_init', 'pysnooper.third_party.six.get_unbound_function', 'pysnooper.third_party.six.ensure_text', 'pysnooper.third_party.decorator.__init__', 'pysnooper.third_party.six._MovedItems', 'pysnooper.third_party.six.callable', 'pysnooper.third_party.six._add_doc', 'pysnooper.third_party.six._SixMetaPathImporter.is_package', 'pysnooper.third_party.six.remove_move', 'pysnooper.third_party.six.MovedModule._resolve', 'pysnooper.third_party.decorator.FunctionMaker.create', 'pysnooper.third_party.six.Module_six_moves_urllib_request', 'pysnooper.third_party.six.b', 'pysnooper.third_party.six.MovedAttribute.__init__', 'pysnooper.third_party.six.create_unbound_method', 'pysnooper.third_party.decorator.FunctionMaker.__init__', 'pysnooper.third_party.six.reraise', 'pysnooper.third_party.six.advance_iterator', 'pysnooper.third_party.six.Iterator', 'pysnooper.third_party.six._LazyDescr.__get__', 'pysnooper.third_party.six.add_metaclass', 'pysnooper.tracer.UnavailableSource', 'pysnooper.third_party.six.byte2int', 'pysnooper.tracer.UnavailableSource.__getitem__', 'pysnooper.third_party.six.with_metaclass', 'pysnooper.third_party.six.create_bound_method', 'pysnooper.third_party.decorator.ContextManager', 'pysnooper.third_party.six.exec_', 'pysnooper.third_party.six.MovedAttribute', 'pysnooper.third_party.decorator.FunctionMaker', 'pysnooper.third_party.six._LazyDescr.__init__', 'pysnooper.third_party.decorator.FunctionMaker.make', 'pysnooper.third_party.six._SixMetaPathImporter._add_module', 'pysnooper.third_party.decorator.dispatch_on', 'pysnooper.third_party.decorator.FunctionMaker.update', 'pysnooper.third_party.six.iterkeys', 'pysnooper.third_party.six.MovedModule', 'pysnooper.third_party.six._LazyModule', 'pysnooper.third_party.six.assertCountEqual', 'pysnooper.third_party.six.Module_six_moves_urllib', 'pysnooper.third_party.six.MovedAttribute._resolve', 'pysnooper.third_party.six._SixMetaPathImporter._get_module', 'pysnooper.third_party.six.assertRaisesRegex', 'pysnooper.third_party.six._LazyModule.__dir__', 'pysnooper.third_party.decorator.getfullargspec', 'pysnooper.third_party.six._SixMetaPathImporter.load_module', 'pysnooper.third_party.decorator.contextmanager', 'pysnooper.third_party.decorator.iscoroutinefunction', 'pysnooper.third_party.six.MovedModule.__getattr__', 'pysnooper.third_party.six._SixMetaPathImporter.__init__', 'pysnooper.third_party.six.iterlists', 'pysnooper.tracer.get_source_from_frame', 'pysnooper.third_party.six.MovedModule.__init__', 'pysnooper.third_party.six.Module_six_moves_urllib_robotparser', 'pysnooper.third_party.six.Module_six_moves_urllib_parse', 'pysnooper.third_party.six.u', 'pysnooper.third_party.six.python_2_unicode_compatible', 'pysnooper.third_party.six._SixMetaPathImporter.find_module']

diff: 0.0.15(original) 0.0.20
['pysnooper.third_party.six._SixMetaPathImporter.__get_module', 'pysnooper.third_party.decorator.decorate', 'pysnooper.third_party.six.itervalues', 'pysnooper.third_party.six._SixMetaPathImporter.get_code', 'pysnooper.third_party.six.Module_six_moves_urllib.__dir__', 'pysnooper.third_party.six.X', 'pysnooper.third_party.six.assertRegex', 'pysnooper.third_party.decorator.decorator', 'pysnooper.third_party.six.Module_six_moves_urllib_error', 'pysnooper.third_party.six.iteritems', 'pysnooper.third_party.six.ensure_str', 'pysnooper.third_party.six.raise_from', 'pysnooper.third_party.decorator.ContextManager.__call__', 'pysnooper.third_party.six.ensure_binary', 'pysnooper.third_party.six.Iterator.next', 'pysnooper.third_party.six.print_', 'pysnooper.third_party.six.indexbytes', 'pysnooper.third_party.six._SixMetaPathImporter', 'pysnooper.third_party.six._import_module', 'pysnooper.third_party.six.add_move', 'pysnooper.third_party.six._LazyModule.__init__', 'pysnooper.third_party.six.X.__len__', 'pysnooper.third_party.six.wraps', 'pysnooper.third_party.six.Module_six_moves_urllib_response', 'pysnooper.third_party.decorator.append', 'pysnooper.third_party.six._LazyDescr', 'pysnooper.third_party.decorator.get_init', 'pysnooper.third_party.six.get_unbound_function', 'pysnooper.third_party.six.ensure_text', 'pysnooper.third_party.decorator.__init__', 'pysnooper.third_party.six._MovedItems', 'pysnooper.third_party.six.callable', 'pysnooper.third_party.six._add_doc', 'pysnooper.third_party.six._SixMetaPathImporter.is_package', 'pysnooper.third_party.six.remove_move', 'pysnooper.third_party.six.MovedModule._resolve', 'pysnooper.third_party.decorator.FunctionMaker.create', 'pysnooper.third_party.six.Module_six_moves_urllib_request', 'pysnooper.third_party.six.b', 'pysnooper.third_party.six.MovedAttribute.__init__', 'pysnooper.third_party.six.create_unbound_method', 'pysnooper.third_party.decorator.FunctionMaker.__init__', 'pysnooper.third_party.six.reraise', 'pysnooper.third_party.six.advance_iterator', 'pysnooper.third_party.six.Iterator', 'pysnooper.third_party.six._LazyDescr.__get__', 'pysnooper.third_party.six.add_metaclass', 'pysnooper.tracer.UnavailableSource', 'pysnooper.third_party.six.byte2int', 'pysnooper.tracer.UnavailableSource.__getitem__', 'pysnooper.third_party.six.with_metaclass', 'pysnooper.third_party.six.create_bound_method', 'pysnooper.third_party.decorator.ContextManager', 'pysnooper.third_party.six.exec_', 'pysnooper.third_party.six.MovedAttribute', 'pysnooper.third_party.decorator.FunctionMaker', 'pysnooper.third_party.six._LazyDescr.__init__', 'pysnooper.third_party.decorator.FunctionMaker.make', 'pysnooper.third_party.six._SixMetaPathImporter._add_module', 'pysnooper.third_party.decorator.dispatch_on', 'pysnooper.third_party.decorator.FunctionMaker.update', 'pysnooper.third_party.six.iterkeys', 'pysnooper.third_party.six.MovedModule', 'pysnooper.third_party.six._LazyModule', 'pysnooper.third_party.six.assertCountEqual', 'pysnooper.third_party.six.Module_six_moves_urllib', 'pysnooper.third_party.six.MovedAttribute._resolve', 'pysnooper.third_party.six._SixMetaPathImporter._get_module', 'pysnooper.third_party.six.assertRaisesRegex', 'pysnooper.third_party.six._LazyModule.__dir__', 'pysnooper.third_party.decorator.getfullargspec', 'pysnooper.third_party.six._SixMetaPathImporter.load_module', 'pysnooper.third_party.decorator.contextmanager', 'pysnooper.third_party.decorator.iscoroutinefunction', 'pysnooper.third_party.six.MovedModule.__getattr__', 'pysnooper.third_party.six._SixMetaPathImporter.__init__', 'pysnooper.third_party.six.iterlists', 'pysnooper.tracer.get_source_from_frame', 'pysnooper.third_party.six.MovedModule.__init__', 'pysnooper.third_party.six.Module_six_moves_urllib_robotparser', 'pysnooper.third_party.six.Module_six_moves_urllib_parse', 'pysnooper.third_party.six.u', 'pysnooper.third_party.six.python_2_unicode_compatible', 'pysnooper.third_party.six._SixMetaPathImporter.find_module']

As for other packages, the APIs of @outside_package_name are called by pysnooper in the call graph and the dependencies on these packages also stay the same in our suggested versions, thus avoiding any outside conflict.

Therefore, we believe that it is quite safe to loose your dependency on pysnooper from "pysnooper==0.0.15" to "pysnooper>=0.0.7,<=0.0.20". This will improve the applicability of beetcode and reduce the possibility of any further dependency conflict with other projects/packages.

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.