Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 17 20:30
    epsy closed #54
  • Oct 17 20:30
    epsy commented #54
  • Oct 17 20:30

    epsy on v4.1.1

    (compare)

  • Oct 17 20:30

    epsy on master

    version 4.1.0 setup: set description for pypi… version 4.1.1 (compare)

  • Oct 17 20:30
    epsy closed #55
  • Oct 17 20:29
    coveralls commented #55
  • Oct 17 20:24
    epsy opened #55
  • Oct 17 20:23

    epsy on v4.1.1

    version 4.1.0 setup: set description for pypi… version 4.1.1 (compare)

  • Oct 17 20:21

    epsy on 4.1.1

    version 4.1.0 setup: set description for pypi… version 4.1.1 (compare)

  • Oct 17 20:21

    epsy on 4.1.0

    version 4.1.0 (compare)

  • Oct 17 20:19
    TomekTrzeciak opened #54
  • Oct 14 22:04
    epsy opened #12
  • Sep 24 04:44

    epsy on update-ci

    (compare)

  • Sep 24 04:44

    epsy on master

    fix pypy3 test compatibility update travis config fix long_description missing on… and 1 more (compare)

  • Sep 24 04:44
    epsy closed #11
  • Sep 24 04:38
    epsy synchronize #11
  • Sep 24 04:37

    epsy on update-ci

    fix pypy3 test compatibility update travis config fix long_description missing on… and 1 more (compare)

  • Sep 23 01:53
    epsy opened #11
  • Sep 23 01:52

    epsy on update-ci

    update travis config fix long_description missing on… error on warnings in tests (compare)

  • Sep 08 00:56

    epsy on warn-error

    (compare)

Chris Angelico
@Rosuav
Heya! Point of curiosity: Is there an easy way to do "level" options, eg "-v" for verbose or "-vv" for more verbose?
I can't find anything about it in the docs, but it'd be a cool feature
(In argparse, it's action="count")
Yann Kaiser
@epsy
Argh, the one time somebody asks here, my notifications weren't on :)
@Rosuav No, there isn't a clean way provided. You might be able to do something out of the box using parameters.multi and a flag
@Rosuav ah, unfortunately not, it only produces one True. You can create a new parameter type ; I'd consider a PR that adds this
Chris Angelico
@Rosuav
Thanks, good to know.
I don't remember what I needed that for, now. Heh.
Yann Kaiser
@epsy
I'd say... verbosity? :) Haha
Chris Angelico
@Rosuav
Yeah but I don't remember the project that wanted it
BTW, Glitter? https://xkcd.com/1810/
Yann Kaiser
@epsy
Hm I remember thinking something was missing from it this morning, but I think it was Telegram and I had actually found it thereafter
I thought you were pointing out a typo for a second, haha
Chris Angelico
@Rosuav
Heh, no. Just... yet another way to communicate
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.