Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: filtering a list of dictionary as per given criteria
Post: RE: filtering a list of dictionary as per given cr...

(Dec-23-2023, 07:45 AM)Gribouillis Wrote: What are detail_in and detail_out?detail_in and detail_out is the substring in the value of key called "name" in the given metadata as shown below [ {...
jss General Coding Help 5 754 Dec-23-2023, 08:32 AM
    Thread: filtering a list of dictionary as per given criteria
Post: RE: filtering a list of dictionary as per given cr...

(Dec-22-2023, 08:12 PM)Larz60+ Wrote: what have you tried so far? Please show your code attempt, working or not. I have pasted my above code above in the initial message itself.please have a look. I...
jss General Coding Help 5 754 Dec-22-2023, 08:29 PM
    Thread: filtering a list of dictionary as per given criteria
Post: filtering a list of dictionary as per given criter...

i have metadata and api_request as below. metadata = [ {"path": "d/scripts", "name": "../"}, {"path": "d/scripts", "name": "../"}, {"path": "d/scripts", "name": "unn_details_in.cfg"}, ...
jss General Coding Help 5 754 Dec-22-2023, 12:26 PM
    Thread: need to compare 2 values in a nested dictionary
Post: need to compare 2 values in a nested dictionary

i have a nested dictionary like below from nested_lookup import nested_lookup sample_dict = { "data": { "systemdata": [ { "system": "1", "tempD...
jss General Coding Help 2 915 Nov-29-2023, 08:30 PM
    Thread: ttp template not working when values are absent in some scenarios
Post: ttp template not working when values are absent in...

......
jss General Coding Help 0 392 Oct-31-2023, 09:01 PM
    Thread: subtract 2 datetime string
Post: RE: subtract 2 datetime string

(Oct-18-2023, 03:50 PM)menator01 Wrote: One way from datetime import datetime current = datetime.now() upload = datetime.strptime('2023-09-26T11:22:42.2Z', '%Y-%m-%dT%H:%M:%S.%fZ') print(f'Upload...
jss General Coding Help 4 849 Oct-19-2023, 05:33 AM
    Thread: subtract 2 datetime string
Post: subtract 2 datetime string

I have a code like below from datetime import datetime time_uploaded="2023-09-26T11:22:42.2Z" time_now =datetime.now()i now want to subtract the above 2 datetime ie (time_now-time_uploaded) and the ou...
jss General Coding Help 4 849 Oct-18-2023, 02:40 PM
    Thread: capturing multiline output for number of parameters
Post: RE: capturing multiline output for number of param...

.....
jss General Coding Help 3 843 Sep-01-2023, 05:42 PM
    Thread: capturing multiline output for number of parameters
Post: RE: capturing multiline output for number of param...

The reason i added {{_end__}} was as it explicitly indicates end of the group.
jss General Coding Help 3 843 Aug-25-2023, 02:21 PM
    Thread: capturing multiline output for number of parameters
Post: capturing multiline output for number of parameter...

I am using ttp template to parse a data from command line I followed the following link while writing below code: https://python-forum.io/thread-40584.html https://ttp.readthedocs.io/en/latest/FAQ......
jss General Coding Help 3 843 Aug-25-2023, 01:37 PM
    Thread: ttp template
Post: RE: ttp template

Hi @deanhystad For the same scenario as below,where we have a description in number of lines,How do we retrieve all the lines.I used _line_ but it gave the information of only the first line import ...
jss General Coding Help 4 962 Aug-23-2023, 08:10 PM
    Thread: ttp template
Post: RE: ttp template

(Aug-22-2023, 11:50 PM)deanhystad Wrote: I figured out what it was doing right away, but it took a while to find in the documentation. Unless told otherwise, ttd replace digits with \d, so 'IPV4 co...
jss General Coding Help 4 962 Aug-23-2023, 05:26 AM
    Thread: ttp template
Post: ttp template

I am using ttp template to parse a data from command line This is my code import json from ttp import ttp temp=""" System Info{{_start_}} IPv4 configuration : {{ipv4_configuration}} IPv6 configurati...
jss General Coding Help 4 962 Aug-22-2023, 07:24 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020