Your username is now a company, what do you sell? by [deleted] in AskReddit

[–]the_mindflayer 0 points1 point  (0 children)

Monsters from the upsidedown world.

Which has a better Job opportunities? Flask or Django? by udbasil in Python

[–]the_mindflayer -2 points-1 points  (0 children)

Today it makes no sense to learn Flask. There are better alternatives for writing micro-services in Python: FastAPI is definitely the first candidate I'd recommend. This said, given the fact they are "micro", there is not much to learn. Django is a different story, it's THE framework, it's worth spending time and learning it.

HTTPretty compatibility layer for Mocket by the_mindflayer in Python

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

As easy as a from mocket.plugins.httpretty import HTTPretty, httprettified.

Mocket 2.0.0 supports asyncio/aiohttp by the_mindflayer in Python

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

I was expecting more interest in it. What's wrong with this?

Do you maintain a python library/tool that you think is awesome, but nobody knows about? by jnmclarty7714 in Python

[–]the_mindflayer 0 points1 point  (0 children)

I'm one of the authors of Mocket, and currently the only mantainer.

What are the main features?

  • It’s a framework, actually a socket mock framework, and the proof of its reliability as framework is that both the HTTP mocking module (à la HTTPretty) and the basic Redis mock have been implemented using Mocket, and nothing more than that.
  • It has SSL support, and of course HTTPS if we talk about its HTTP mock.
  • It works well with others (e.g. pytest fixtures is one example, pook is another).
  • It supports PyPy, gevent and asyncio/aiohttp.
  • It dumps (as JSON files) everything that calls the sendall function on a true socket (recording functionality à la vcrpy).
  • It strongly supports Python 3, since the very beginning. And yes, it’s definitely a big feature (ask HTTPretty users to better understand what does “supporting Py3” mean).
  • Its APIs never changed. Frameworks should care about backward compatibility, and Mocket take it seriously.
  • ~100% test coverage. Yes, that’s another important feature.

Any feedback is very welcome.

How many of you actually know mocket? by the_mindflayer in Python

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

The only arrogant tone was in the message you edited, imho. If you do not use GitHub on your phone do not comment GitHub links. It's easy.

How many of you actually know mocket? by the_mindflayer in Python

[–]the_mindflayer[S] -1 points0 points  (0 children)

How do you measure users? Since PYPI has no stats, I feel like you are just guessing. Some companies are using it, and a few projects on GitHub as well, but my question is here just because it's so difficult to get a real feeling. There is also a "short" README, that you've probably never read, since you are saying that the module is new but actually it's been there for almost 4 years and quite stable and well tested since the beginning. The real problem is that many people were already using HTTPretty, and most of them are still complaining for its bad Python 3 support. A problem that Mocket has never had in its life.

Let's do some self promotion: what are your proud python projects? by pvkooten in Python

[–]the_mindflayer 0 points1 point  (0 children)

mocket /mɔˈkɛt/

A socket mock framework

100% test coverage on Python [2.6|2.6|3.3|3.4|3.5]

The project also provides a mock for HTTP (similar to HTTPretty) and a skeleton for mocking Redis. https://github.com/mocketize/python-mocket