howto to disable autobahn preformated print

#1

hi

i want to use progressbar2 inside an autobahn/twisted application which runs in a bash terminal.

but i doesnot work, i think it's due to the autobahn preformated print.

so how can i disable all this, in order to use any display shell library ?

thanks

ninou

0 Likes

#2

Can you give more information on what you’re trying to do?

Autobahn and Crossbar use txaio which provides a logging solution that is compatible with both twisted and asyncio so I think you would need to look at txaio and maybe fork progressbar2 to make it compatible…

···

On Saturday, May 5, 2018 at 9:10:13 AM UTC+2, ninou wrote:

hi

i want to use progressbar2 inside an autobahn/twisted application which
runs in a bash terminal.

but i doesnot work, i think it’s due to the autobahn preformated print.

so how can i disable all this, in order to use any display shell library ?

thanks

ninou

0 Likes

#3

i just want to code a little application which call a registered
function, and prints a progressbar according a plublished
“progress…” event

···

Le 06/05/2018 à 11:57, Adam Jorgensen a
écrit :

    Can you give more information on what you're trying

to do?

      Autobahn and Crossbar use txaio which provides a logging

solution that is compatible with both twisted and asyncio so I
think you would need to look at txaio and maybe fork
progressbar2 to make it compatible…

      On Saturday, May 5, 2018 at 9:10:13 AM UTC+2, ninou wrote:
        hi




        i want to use progressbar2 inside an autobahn/twisted

application which

        runs in a bash terminal.




        but i doesnot work, i think it's due to the autobahn

preformated print.

        so how can i disable all this, in order to use any display

shell library ?

        thanks




        ninou

  You received this message because you are subscribed to the Google

Groups “Crossbar” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to crossbario+...@googlegroups.com.

  To post to this group, send email to cross...@googlegroups.com.

  To view this discussion on the web visit [https://groups.google.com/d/msgid/crossbario/f25cbd70-4687-4417-a752-27a30f198102%40googlegroups.com](https://groups.google.com/d/msgid/crossbario/f25cbd70-4687-4417-a752-27a30f198102%40googlegroups.com?utm_medium=email&utm_source=footer).

  For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
0 Likes

#4

Well, like I said, autobahn and crossbar use txaio for logging which is cross-compatible with Twisted and asyncio.

The documentation at https://progressbar-2.readthedocs.io/en/latest/#progressbars-with-logging implies that progressbar2 can be made to work with logging but there’s no mention of asyncio or twisted compatibility or lack thereof.

Can you show a sample of your code?

0 Likes

#5

thanks adam,

but i do not want to log, i just want to print something on the terminal with my own format ( a progress bar, ....).

may be a solution is to force txaio to stop logging in order retake control on stdout, stderr

···

On 09/05/2018 09:35, Adam Jorgensen wrote:

Well, like I said, autobahn and crossbar use txaio for logging which is cross-compatible with Twisted and asyncio.

The documentation at https://progressbar-2.readthedocs.io/en/latest/#progressbars-with-logging implies that progressbar2 can be made to work with logging but there's no mention of asyncio or twisted compatibility or lack thereof.

Can you show a sample of your code?
--
You received this message because you are subscribed to the Google Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crossbario+...@googlegroups.com <mailto:crossbario+...@googlegroups.com>.
To post to this group, send email to cross...@googlegroups.com <mailto:cross...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/crossbario/bffe62f3-79ab-49e3-9a53-497dcc9774f1%40googlegroups.com <https://groups.google.com/d/msgid/crossbario/bffe62f3-79ab-49e3-9a53-497dcc9774f1%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes