Giter VIP home page Giter VIP logo

Comments (8)

FedericoAureliano avatar FedericoAureliano commented on September 25, 2024 2

Fair. Fixed.

from stringfuzz.

FedericoAureliano avatar FedericoAureliano commented on September 25, 2024 1

Fix to Error 1 pushed to "bandit" branch. Pull it down and let me know.

Errors 2 and 3 seem to be parser issues.

from stringfuzz.

FedericoAureliano avatar FedericoAureliano commented on September 25, 2024 1

Error 2 is because "<" is not a string operator so it is not in the bandit's supported ops. Added a warning and ignoring those. Pushed to "bandit" branch.

from stringfuzz.

j29scott avatar j29scott commented on September 25, 2024

I'm confused, the command line interface says the following are operators: '=', '>', '<', '>=', '<=', 'Concat', 'Contains', 'At', 'Length', 'IndexOf', 'IndexOf2', 'PrefixOf', 'SuffixOf', 'Replace', 'ReInter', 'ReUnion', 'ReRange', 'RePlus', 'ReStar', 'ReConcat', 'Str2Re', 'InRegex', 'ToInt', 'FromInt', 'Substring'

from stringfuzz.

dblotsky avatar dblotsky commented on September 25, 2024

@FedericoAureliano heyoo, what do you think of merging banditfuzz into trunk, so you don't have to work on a branch? :)

Also, are there ways I can make it easier to write, say, only plugins (e.g. importing all files in a plugins folder, or looking at pip-installed packages)? That way you don't have to work on all of stringfuzz, and just have a repo with your plugin.

from stringfuzz.

FedericoAureliano avatar FedericoAureliano commented on September 25, 2024

Woah software engineering sensei teach me. I'm very keen for a way to write plugins that's independent (also for another project I'm working on). What's the best way to do it?

from stringfuzz.

dblotsky avatar dblotsky commented on September 25, 2024

@FedericoAureliano Heh, I'm far from a sensei. I'm barely passable!

The methods I'm considering:

  1. Pass a --plugin path/to/plugin.py flag, and import the file at the path.
  2. Pass a --plugin pip_package_name flag, and import the specified package by name.
  3. Automatically run pip freeze in Stringfuzz, and import all things that start with a fixed string (e.g. stringfuzz-plugin-.*).
  4. Automatically import everything inside the generators or transformers folders.

And then every such package would have to conform to an API, like its argument-parsing, its methods, etc.

What do you think of these? Do you have any ideas?

from stringfuzz.

FedericoAureliano avatar FedericoAureliano commented on September 25, 2024

I like 1/2 a lot. Handling the subparsers might be tricky though. I guess the plugin will have to define this stuff somewhere too. Maybe having the user provide a configuration file?

from stringfuzz.

Related Issues (20)

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.