All right, so welcome back again. So in this particular session, we try to see an alternative of using a, b, c now to work with a Spiner developer like this, we have also seen how to work with it with a with with the context manager. Now let's get into we are working with that using a trace method. So I'm just going to create another one, another file here. And let's call this new file us. Hello, download, right?
Hello download.pi. Very interested. So let's see how to work with this tool. This is very simple. I'm just going to go with from Hello. input, hello, capital.
Then I can just move on straight away with the spine I want to work with spider man's going to go with my Hulu test. By default test that I want to use, we can just call this one downloading. downloading files, or data sets can be anything that you want to do. Or father, zip or any other false right? Then I just go with my Spanner which is going to take the dirt and no forget this there must be a comma here right that's another Bible that's order we have that now in case I want to work with a try segment or can you try and use to the last one tries it then I'm going to go with my Spiner that starts to occur is passing that particular message or leave it without any message. Then I just go with my for i in my rich dad just passing any value so let's make it 200 so this option is not only just downloading but adding some values to our Hello Spiner right very interested for i in range 100 now go with my Spiner to test to add a test to it in our passing that particular test today is going to be this option Then I'll just pass in the presenter capacity percentage, then I'll just go to format for that particular act, right, so let's call it this percentage downloaded off of that particular from left to right, very interesting.
I'm making data sets can we get into how you want it to be very simple. That is order we need to this is a simple circuit. Now to run this condition come back, it's time dot sleep. So let's import time. And right up here. Let's go this time.
What time the meeting time to hope so that you can actually also use random in case you want to do so and only delete a number. So let's do it for two random to import random. And from here I can just pass passing under random All right, so this is going to be running for us. So when it's finished, I want to give some information to this which is going to be the first kilometer I want to give freedom to be spider dot succeed. Then I pass in Finland to finish downloading file, right very interesting that is order to consume information to it and it was related to info. Then done.
Perfect write something very simple. So that is something very basic. So you can just do this one LLC with an endless run which I've done so far. I come back to the same place that we were running previously. Then this is now going to be Hello, Tallulah. Veronica is going to show the progress bar right to get out that percentage to see that it's running.
It's using this hundred percent They reached out to equity so can you just put your activity there at this point here, like threats false this is showing the activity being done here, right there when it's finished it is it when the trade is finished. So all that you have been doing anytime you see the time that is where you put your activity we can get it anyway but that is one of the ways of a committed so it's running perfectly will cease to 1% hundred percent you do all your time consuming activity, they won't they will tell you tell us that just succeeded with finish downloading file, then give us an info about it. Almost 10% left. Cancel us to dm to do the same procedure. So finish done, right so we need to finish doing it. There is one tester.
So in case we want to add a keyboard interruption and we'll do that as an option here. Right by bringing coming to the reception. Then passing your keyboard stuff Just want to be something like this swing center like this opposite there. Right? So, keyboard interrupt and then system because this name is passing your last value. So reading that arrow, we just move on and then keep it good stop, right to stop it right.
So in case I start running again, go to, I can actually stop it right straightaway. So this is working, then if I go with Ctrl, C has stopped out without giving us an error without this particular option here. Let's think of this as good except we're just data one is going to give us that particular message by so let's go off with this. If I go into default one, this right and I touch on it again. So let's see if this electronic you see what he's running for, I know loading stuff if I stop it. Because the United States muscular arrow, which is not user friendly, like this, why we use the previous one that we did, which was this, which was this particular one I so that we don't get this close.
If I see this one, and I run it, this is not going to come even if I interrupted right so it's going to hide that particular ugly arrow. See if I stop it which one to seek. Now, that's no error. Okay, that is how to work with it through So in a nutshell can just create input Hello, quit your normal stuff. Now you did try except hope you work with it. So thank you for watching, and see you next session.
Stay blessed.