• Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    done it :) `issue_date = datetime.strptime(datef, "%Y-%m-%dT%H:%M:%S.%f%z")` but now :( if period_name == "All Weeks": labels = range(1, 53) data[week_number_of_year(issue_date) - 1] +=1 else: labels =["Week {}".format(x) for x in …
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    issue_date = datetime.strptime(datef, "%Y-%m-%dT%H:%M:%S.%f") raise ValueError("unconverted data remains: %s" % ValueError: unconverted data remains: +0000 a little improvement but still, this is one crazy timeframe.... can this help? https://stackoverflow.com/questions/41684991/datetime-strptime-2017-01-12t141206-000-0500-y-m-dthms-fz
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    http://5.9.10.113/61386591/python-jira-rest-api-iso-8601 import datetime datetime.datetime.now().astimezone().replace(microsecond=0).isoformat() >>> 2020-03-21T14:31:43+13:00 maybe this as a hint, need to check it better https://github.com/hmrc/jira-metrics/blob/master/jira-metrics.py
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in populate tables from txt with specific time frame

    > :( issue_date = datetime.fromisoformat(datef) ValueError: Invalid isoformat string: '2021-07-16T13:13:01.000+0000' Damn, that's frustrating. You might need to install and use the [dateutil](https://dateutil.readthedocs.io/en/stable/), which can parse aribtrary date and time formats. …
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in populate tables from txt with specific time frame

    OK, I think this should work, replace the previous assignment to `issue_date` with issue_date = datetime.fromisoformat(datef) This assumes that the dates are in ISO format, which I gather they will …
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    date is send by jira in this format datef=2021-07-16T13:13:01.000+0000
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    it seems there is a date not converted raise ValueError("unconverted data remains: %s" % ValueError: unconverted data remains: T13:13:01.000+0000 i think is this issue_date for issue in jsearch: tipo = …
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    thank you :) now i get this odd error def jsearch_by(projects, users, start_date, end_date, start, size): """ Submits a query to the JIRA server and returns the results.""" source_query = …
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    wow, thanks just having an issue with the start File "/Users/ricardosimoes/PycharmProjects/OCPP/week_report.py", line 137, in jsearch_by date_query = 'AND created >= {start} AND created < {end}'.format(start_date.strftime("%Y-%m-01"), end_date.strftime("%Y-%m-%d")) `KeyError: 'start'` I had …
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    ok, this is getting issues from jira just fine, although it dont stop :s the for loop just restart the all the issues a loaded and goes on like that. …
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    this is 1h in the morning, will test it tomorow. the biggest issue is to pick a month and create the chart weekly based on that month, got it to …
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    been making some change, this is harder than i though. the sample data is diferente ill try to upload a file for you from tkinter import Tk, Button, ttk from …
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    this as change a little, im getting the info not from sample.txt but from jira this is working fine :) from jira import JIRA serverURL = 'https://jira.mob.dev/' user = 'user' …
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    Type Date Reviews 24/03/21 Operations 24/03/21 Operations 24/03/21 Operations 24/03/21 Reviews 24/03/21 Operations 24/03/21 Operations 24/03/21 Reviews 24/03/21 Reviews 25/03/21 Reviews 25/03/21 Reviews 25/03/21 Reviews 25/03/21 Operations 25/03/21 Operations 25/03/21 …
  • Member Avatar for razstec
    razstec

    Replied To a Post in populate tables from txt with specific time frame

    from tkinter import * import calendar import datetime import numpy as np import matplotlib.pyplot as plt from datetime import datetime datetime_object = datetime.strptime('Jun 1 2005 1:33PM', '%b %d %Y %I:%M%p') …
  • Member Avatar for razstec
    razstec

    Edited populate tables from txt with specific time frame

    Need to make independent charts for current month, last month and since the beginnig of the year. Been trying to make the table and then make the bar charts, got …
  • Member Avatar for razstec
    razstec

    Edited populate tables from txt with specific time frame

    Need to make independent charts for current month, last month and since the beginnig of the year. Been trying to make the table and then make the bar charts, got …
  • Member Avatar for razstec
    razstec

    Edited populate tables from txt with specific time frame

    Need to make independent charts for current month, last month and since the beginnig of the year. Been trying to make the table and then make the bar charts, got …
  • Member Avatar for razstec
    razstec

    Created populate tables from txt with specific time frame

    Need to make independent charts for current month, last month and since the beginnig of the year. Been trying to make the table and then make the bar charts, got …
  • Member Avatar for razstec
    razstec

    Began Watching populate tables from txt with specific time frame

    Need to make independent charts for current month, last month and since the beginnig of the year. Been trying to make the table and then make the bar charts, got …
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    The link doesn't work. By going to GitHub, I can see your account, but it isn't showing any public repositories. [This documentation page](https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/inviting-collaborators-to-a-personal-repository) seems to be the information you are …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    https://github.com/razsim/pythonProject, can you access like this or do i have to give you some permissions?
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    > i never used git on a developer base :( wouldnt know how to use it OK, fair enough. It wouldn't necessarily have to be Git, but if you don't …
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    This may be presumptuous of me, but would you like me to set up a public repo for your code on my Github account? That may make sharing the code …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    it creates the tabs based on the txt tabControl = ttk.Notebook(tabmain1) style = ttk.Style() style.theme_create("stl_obrigator", parent="alt", settings={ "TNotebook": {"configure": {"tabmargins": [2, 5, 2, 0]}}, "TNotebook.Tab": { "configure": {"padding": [5, 1], …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    hope this could work style = ttk.Style() style.theme_create("stl_obrigator", parent="alt", settings={ "TNotebook": {"configure": {"tabmargins": [2, 5, 2, 0]}}, "TNotebook.Tab": { "configure": {"padding": [5, 1], "background": "#fd6262"}, "map": {"background": [("selected", "#fd2b2b")], "expand": …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    this is way outer my league... too complicated for now, thank you so much for all the time you spend. ill come back to this when im a little more …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    made some changes but its still 5 slots ChangeConfiguration<->Configuration <-> Change ID <-> {"key": "Identity","value": "00006"}<->Reboot Response ClearCache<->ClearCache <-> Without Inputs <-> {}<-> Response retrieving all conf ChangeAvailability<-> Availability <-> …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    got the same error as before File "/Users/ricardosimoes/PycharmProjects/pythonProject/OCP/testes/tabset.py", line 69, in packTabs tab_count, tab_title, button_name, json_request, expected_response = line.split('<->') ValueError: not enough values to unpack (expected 5, got 1)
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    I've fixed several issues with my earlier code, and have a version that behaves more or less as I think you want it to. Let me know if this is …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    Made a small change since there is no need for the tabs.txt since that info is in json_dumps.txt import os import time from tkinter import * import tkinter as tk …
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    So it is basically a program to test JSON queries? Or is there something more to it?
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    So it is basically a program to test JSON queries? Or is there something more to it?
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    Even seeing it run, I'm still not certain what the program is for. Could you elaborate on what it is meant to be used for, please?
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    the submenu have options of json request, the the request is show in Request and expected response in expected response, when you run the post it will output to response …
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    Even seeing it run, I'm still not certain what the program is for. Could you elaborate on what it is meant to be used for, please?
  • Member Avatar for razstec
    razstec

    Endorsed Schol-R-LEA

  • Member Avatar for razstec
    razstec

    Endorsed Schol-R-LEA

  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    OK, thank you for those. I'll have to go over this to see what I can recommend.
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    hope this can help. the absolute path is something, it didnt start like that but then i add a little function to backups the txt´s and they stop working. ill …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    you can run it like this import os import time from tkinter import * import tkinter as tk from tkinter import ttk, PhotoImage, LabelFrame, Text, GROOVE, Button, Label, scrolledtext from …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    dont apologise, i apologise, your helping me thank you so much. geraform us called by gera_forms(get_inp_cond_id, get_inp_cond_endpoint) something like: gera_forms(stat1,nome_end<->30<->http://something.com) get_inp_cond_endpoint=(nome_end<->30<->http://something.com)
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    i, thanks, im still testing it and its not ready yet, but if you like its this from xlwt import XFStyle, Font, Workbook import xlwt import time filename = "Reports/"+time.strftime("%Y%m%d-%H%M%S")+'_easlo1.xls' …
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    Hmmn, unfortunately, I can't find a copy of the library `xpto.makeReport` you are using for writing the report forms to, so I can't test the program as a whole. However, …
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    Hmmn, unfortunately, I can't find a copy of the library `xpto.makeReport` you are using for writing the report forms to, so I can't test the program as a whole. However, …
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    Hmmn, unfortunately, I can't find a copy of the library `xpto.makeReport` you are using for writing the report forms to, so I can't test the program as a whole. However, …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    import time from tkinter import * import tkinter as tk from tkinter import ttk, PhotoImage, LabelFrame, Text, GROOVE, Button, Label, scrolledtext from tkinter.scrolledtext import ScrolledText import requests import json from …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    maybe for line in varconfbook: tabb, tiporeq, titreq, jsonreq, expectresq = line.split('<->') if "tab1" in tabb and tab1done: tab1 = ttk.Frame(tabControl) tabControl.add(tab1, text=tiporeq) tabControl.pack(expand=1, fill="both") tab1done=1 if "tab2" in tabb …
  • Member Avatar for razstec
    razstec

    Replied To a Post in Create Several Frames From A List Populated By A Txt

    maybe i should just do it like this lsttiporeq1 = [] tabblers = [] for line in varconfbook: tabb, tiporeq, titreq, jsonreq, expectresq = line.split('<->') if tabb not in tabblers: …
  • Member Avatar for razstec
    razstec

    Gave Reputation to Schol-R-LEA in Create Several Frames From A List Populated By A Txt

    Would a list of tab objects be suitable? Given the `tabN` format. using a list instead seems an obvious improvement (since you would be able to iterate through the list …

The End.