Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 02 04:31
    arthur-rtzr opened #62
  • Mar 12 14:55
    TomekTrzeciak commented #3
  • Feb 05 18:52
    timcera commented #3
  • Dec 13 2020 14:51
    nodakai commented #61
  • Dec 13 2020 14:44
    coveralls commented #61
  • Dec 13 2020 14:42
    nodakai opened #61
  • Aug 22 2020 00:49
    richieadler opened #60
  • Jul 04 2020 03:30
    jnoortheen opened #59
  • May 31 2020 22:47

    epsy on nightly-to-py310

    (compare)

  • May 31 2020 22:47

    epsy on master

    travis: add python 3.10 (compare)

  • May 31 2020 22:47
    epsy closed #15
  • May 31 2020 22:43

    epsy on nightly-to-py310

    (compare)

  • May 31 2020 22:43
    epsy opened #15
  • May 31 2020 22:42

    epsy on nightly-to-py310

    travis: add python 3.10 (compare)

  • May 31 2020 22:39

    epsy on master

    travis: add python 3.10 (compare)

  • May 31 2020 22:39
    epsy closed #58
  • May 31 2020 22:38
    coveralls commented #58
  • May 31 2020 22:35
    epsy opened #58
  • May 31 2020 22:32

    epsy on nightly-to-py310

    travis: add python 3.10 (compare)

  • Mar 02 2020 03:41

    epsy on travis-py39

    (compare)

Chris Angelico
@Rosuav
Well, I started using Clize after I stopped doing my own one with docstringargs
(which is still on PyPI, but I'm not doing anything with it)
Yann Kaiser
@epsy
I remember :)
Chris Angelico
@Rosuav
argparse is great, but so fiddly to configure. It needs a wrapper.
Yann Kaiser
@epsy
hmm I came across one that was like clize but argparser-based
must be 'argh'
Benjamin Leopold
@cometsong
@epsy (and/or others) - I'm trying to write a program using the attr library (https://attrs.readthedocs.io) and clize in concert with each other... is this possible? I'm at the beginning of combining usage of these two.
I noticed you also have an attr module inside clize. Looking into using that instead. Does it also remove the need for the many "dunder" methods?
Benjamin Leopold
@cometsong
oops, i meant the attrs "class without boilerplates" that it seems you've got copied into the rtfd module_code attr_make
Yann Kaiser
@epsy
Clize uses attrs as a dependency. It seems sphinx may have made an html page for it when rendering the source code
As for your initial question, Clize and attrs don't interfere with eachother, though there isn't specific support between eachother
I've been using attrs in conjunction with argument decorators at work, I intend to add an integration for this usecase in the future
if you use attrs in your project though, I recommend you depend on it directly, it's usually not a good idea to have implicit dependencies gotten from your dependencies' dependencies :)
Benjamin Leopold
@cometsong
Oh I have absolutely using it directly - completely agree on not trusting implicit anythings. :)
Richard Barnes
@r-barnes
Is there a way to have clize not show an argument in the command-line? Some of my functions have keyword arguments that would only make sense if the functions were being used within Python code.
Yann Kaiser
@epsy
Yes @r.barnes, you can annotate the parameters with Parameter.IGNORE or Parameter.I and clize will skip them completely http://clize.readthedocs.io/en/stable/reference.html#skipping-parameters
Sorry, that was for @r-barnes
If you want to avoid annotations, you can use the @sigtools.annotate(paramname=Parameter.I) decorator or wrap your function in a way that "masks" the parameters you want to make non-clized
Саша Черных
@Kristinita

@epsy, do you plan to still support clize?

Thanks.

Yann Kaiser
@epsy
@Kristinita I still plan to, though my time can be sparse sometimes.
Саша Черных
@Kristinita
OK, Thanks. We hope that someday #37 will be fixed.
Yann Kaiser
@epsy
Ah, yes. Getting the proper setup to work on it takes time so I hadn't gotten around to it. I'll find a time and get back to you
Yann Kaiser
@epsy
@Kristinita As a workaround it seems to work on Python 3.7. I will investigate on 3.6 tomorrow.
Yann Kaiser
@epsy
I reproduced the issue and am working on the test suite to have it reproduce it too
Саша Черных
@Kristinita
@epsy , all right, we waiting) .
@epsy, Mypy check Clize syntax as wrong. If you want to reply Guido Van Rossum, please, look python/mypy#5541. Thanks.
NODA, Kai
@nodakai_twitter
@epsy it would be great if you could point me to info on achieving sth equivalent to https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.parse_known_args
I'm writing a wrapper to pytest and want to allow users to pass arbitrary flag to pytest when they need them