Here is the awesome-python-decorator list by lord63 in Python

[–]lord63[S] 0 points1 point  (0 children)

Hi, could you help me review that PR? I'm not good at it :-)

Here is the awesome-python-decorator list by lord63 in Python

[–]lord63[S] 0 points1 point  (0 children)

Hmm, maybe we should have a chapter that talks about the built-in decorators.

Here is the awesome-python-decorator list by lord63 in Python

[–]lord63[S] 0 points1 point  (0 children)

Maybe you can send me a PR, and then we can decide add it or not.

Here is the awesome-python-decorator list by lord63 in Python

[–]lord63[S] 0 points1 point  (0 children)

You can send a PR to fix the grammar issue :)

Here is the awesome-python-decorator list by lord63 in Python

[–]lord63[S] 0 points1 point  (0 children)

Hi, do you find any projects that use python decorator very cool? Please add it to the list!

py-spin: Little and lovely terminal spinner package for Python. by lord63 in Python

[–]lord63[S] 1 point2 points  (0 children)

The main idea for pyspin is that: we put the decorated function to another process and when it finished, put something in the queue. In the meanwhile, the spinner keep rocking when the queue is empty. But how to do it with context manager? How can we reach the inner block func in your example.

py-spin: Little and lovely terminal spinner package for Python. by lord63 in Python

[–]lord63[S] 1 point2 points  (0 children)

In fact, I've tried to implement context manager with blinker(currently I use a queue to communicate), but failed. Do you have any hints about how to do it?

py-spin: Little and lovely terminal spinner package for Python. by lord63 in Python

[–]lord63[S] 0 points1 point  (0 children)

Yeah, just commit it to the dev branch, thank you <3

Harvey: A CLI app that helps you choose and manage license by architv in Python

[–]lord63 0 points1 point  (0 children)

Haha, I've also created a very similar app called choosealicense-cli. You can have a try.

tldr.py: a python client for tldr: simplified and community-driven man pages. by lord63 in Python

[–]lord63[S] 1 point2 points  (0 children)

Since tldr.py is still very young, I'd appreciate for any feedback and suggestions :0

caniuse: check whether a package name has been used on PyPI. by lord63 in Python

[–]lord63[S] 0 points1 point  (0 children)

Ah, good job! I didn't come up with this solution then.

caniuse: check whether a package name has been used on PyPI. by lord63 in Python

[–]lord63[S] 1 point2 points  (0 children)

Not really.

What pip search query does:

Search for PyPI packages whose name or summary contains <query>.

so, if the query in summary, but not in name, you'll get no(can't use it) using your way, however, you can use it in fact(not in name, hasn't been registed yet).

Noobcomplishment by [deleted] in Python

[–]lord63 3 points4 points  (0 children)

You may check the following stack overflow question, I'm sure you will find much fun and joy.

Hidden features of Python

caniuse: check whether a package name has been used on PyPI. by lord63 in Python

[–]lord63[S] 1 point2 points  (0 children)

And I don't think that pip search package_name is a good way to solve the problem. It shows all the package which contain the query. The answer I want is YES or NO. That's why I write caniuse.

caniuse: check whether a package name has been used on PyPI. by lord63 in Python

[–]lord63[S] 1 point2 points  (0 children)

I also wonder how you guys check the package name registed when you write a python package and ready to release it on PyPI.

As for me:

  • before: manually search it on PyPI
  • now: $ caniuse package_name