CheeseTheMonkey/AdventOfCode 0
repository for attempts at Advent of code solutions
CheeseTheMonkey/cfn-pyplates 0
Amazon Web Services CloudFormation templates, generated with Python!
CheeseTheMonkey/django-maintenance-mode 0
django-maintenance-mode shows a 503 error page when maintenance mode is on.
Automates the destruction and recreation of django databases
CheeseTheMonkey/FHIR-ReasonableAdjustments-API 0
FHIR Reasonable Adjustments API
Flask extension to allow Flask to be configured with ConfigParser ini files.
CheeseTheMonkey/flask-limiter 0
rate limiting extension for flask applications
CheeseTheMonkey/flask-tornado-academy 0
Step by step guides to Flask and tornado
Google Hangouts bot
issue commentalisaifee/flask-limiter
How to get "Retry-After" value inside error_message or errorhandler ?
This is unfortunately not possible at the moment since the context for getting the retry after value is lost when the error handler or error message are evaluated. This does seem like a useful feature to have so I'll try to add it in the next few days.
comment created time in 22 days
push eventalisaifee/flask-limiter
commit sha 430019057906ee69558859a8bee1fc2f9005844f
adding all limits to g
commit sha ed6aa66be90ddf71dec12b54b67812bdb338c299
Merge pull request #268 from rockestate/monitor_limits adding all limits to g
push time in 22 days
PR merged alisaifee/flask-limiter
Our goal is to be able to raise warnings when some rate limits reach some X% of their capacity.
The easiest way seems to be applying a little patch to your package, which only provides access to one limit per endpoint.
pr closed time in 22 days
issue openedalisaifee/flask-limiter
How to get "Retry-After" value from error_message or errorhandler ?
Instead of default n per x error message, i want to show user something more precise, like "Retry After 2 minutes 34 seconds".
And for that i need the "Retry-After" delta-seconds value.
Please help. Thank You.
created time in 24 days
issue commentdilshod/xlsx2csv
Feature request: write CSV to stdout
Dilshod Temirkhodjaev (2020/12/28 04:05 -0800):
Try just
xlsx2csv foo.xlsx
it will write csv to stdout
Oh! So sorry I dind't try that!
Feel free to close the issue!
comment created time in a month
issue commentdilshod/xlsx2csv
Feature request: write CSV to stdout
Try just
xlsx2csv foo.xlsx
it will write csv to stdout
comment created time in a month
issue openeddilshod/xlsx2csv
Document default behaviour of -s option
What is the default behaviour of the -s option, please?
When it is not specified, does it default to 1 (only the first sheet) or to 0 (all sheets)?
Could that be documented in the manpage, please?
created time in a month
issue openeddilshod/xlsx2csv
Feature request: write CSV to stdout
Many thanks for the helpful tool!
At the moment
xlsx2csv foo.xlsx -
creates a file named "-" and
xlsx2csv foo.xlsx /def/sdtout
produces the following error:
Traceback (most recent call last):
File "/usr/bin/xlsx2csv", line 1129, in <module>
xlsx2csv.convert(outfile, sheetid)
File "/usr/bin/xlsx2csv", line 216, in convert
self._convert(sheetid, outfile)
File "/usr/bin/xlsx2csv", line 266, in _convert
outfile = open(outfile, 'w+', encoding=self.options['outputencoding'], newline="")
io.UnsupportedOperation: File or stream is not seekable.
(The smae holds for /dev/fd/1
.)
Could the tool be extended so as to support writing the CSV file to its standard output, please?
In the same vein it may be nice to be able to read the XLSX content from stdin so that the tool can be fully integrated in a pipe, if that is not yet supported.
created time in a month
issue closedalisaifee/flask-limiter
I'm writing an app with some routes that cost more computationally. Therefore I would like some routes to deduct more than 1 from from quota every time the route is requested. For example the limit decorator could take a cost
parameter that by default is equal to 1, but could be set to someting like 5 if a request to that route costs 5 times as much as a standard request.
Expanding on this idea a bit, it would be interesting if the cost could be calculated from the Response rather than static per route. This could enable the limiter to track "true" cost where the cost is something like CPU time. So a request that costs a lot of CPU time would be fulfilled, and the Response made, but then before passing the result onto the end user, a certain amount is deducted from their quota. I guess this could be implemented by having the cost
parameter on the limiter accept a callable (which gets called with the flask response).
closed time in a month
bkanukaissue closedalisaifee/flask-limiter
Does a format like this support 5 / 30s?
closed time in a month
aprilahijriyanissue openedalisaifee/flask-limiter
Hello, I'll deploy my API onto GCP Compute Engine and I'll use Google Cloud Tasks for async tasks. I've only seen tutorials about Redis.
Is it possible to use this with GCP Cloud Tasks? If so, what would be the steps?
Thanks in advance.
created time in a month
issue commentalisaifee/flask-limiter
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
comment created time in a month
issue commentalisaifee/flask-limiter
How to use disk for rate limit storage ?
simple disk level logging can be useful, atleast as a debug TRUE option if possible
comment created time in a month
issue commentalisaifee/flask-limiter
Does a format like this support 5 / 30s?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
comment created time in a month
issue commentalisaifee/flask-limiter
How to use disk for rate limit storage ?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
comment created time in a month
issue closedalisaifee/flask-limiter
Q: Can we use multiple Limiters on a single app?
Hi alisaifee,
I am trying to apply two sets of default limits on all routes, by using this code:
limiter = Limiter(app,
key_func=get_remote_address,
default_limits=["30 / minute", "500 / hour", "2000 / day"],
headers_enabled=True,
storage_uri=LIMITER_URI,
in_memory_fallback_enabled=True
)
global_limiter = Limiter(
app,
key_func=lambda:"global_bucket",
default_limits=["100 / minute"],
headers_enabled=True,
storage_uri=LIMITER_URI,
in_memory_fallback_enabled=True
)
This behaves differently than using global_limiter = limiter.shared_limit("100/minute", scope=lambda:"global_bucket")
because this way, I wouldn't have to mention @global_limiter
before all routes.
However it appears global_limiter is not applied.
Besides, I could not find any example of people using multiple Limiters on any app. Would you have an idea of how to accomplish this?
closed time in a month
Lalbatrosissue closedalisaifee/flask-limiter
Please add "FileSystem" for RATELIMIT_STORAGE_URL
in-memory storage doesn't work for multi worker. And redis and other storage option need extra addon... money... which is not possible for now :(
So please add filesystem storage option like Flask-Session or Flask-Caching... It will be really helpful :)
closed time in 2 months
dvamhmceissue commentdilshod/xlsx2csv
Read Excel file take too much time
Its really good suggestion. I have done its divide-and-conquer approach. will try dask library also for performance analysis.
Thanks for your comment !!!
comment created time in 2 months
issue commentalisaifee/flask-limiter
Q: Can we use multiple Limiters on a single app?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
comment created time in 2 months
issue commentalisaifee/flask-limiter
Please add "FileSystem" for RATELIMIT_STORAGE_URL
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
comment created time in 2 months
issue openeddilshod/xlsx2csv
Hi maintainers @dilshod
I would like to integrate the project into OSS-fuzz. This is a free service by Google where they perform continuous fuzzing of open-source projects used by industry and with the only expectation that maintainers of the project will patch the bugs found by OSS-Fuzz.
Atheris will be used to fuzz this project. Atheris is a python-based fuzzer created by Google. If you are interested in this, could you please provide me with an email address that will be receiving the bug reports that my fuzzers find?
Aldo
created time in 2 months
issue closedalisaifee/flask-limiter
Can we get pypi package update for recent PR's
closed time in 2 months
VeNoMouSissue commentalisaifee/flask-limiter
How to set a custom cooldown when ratelimited?
I want to do this too.
comment created time in 2 months
issue commentalisaifee/flask-limiter
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
comment created time in 2 months
issue closeddilshod/xlsx2csv
I can't read the Excel file, Excel itself opens it with a warning about an invalid file, but fixes it and reads it normally.
xlsx2csv only reads a few lines from the file.
I attach the Excel file and the output of the xlsx2csv:
root@acc:/var/www xlsx2csv data.xlsx data.csv
Traceback (most recent call last):
File "/usr/local/bin/xlsx2csv", line 1166, in <module>
xlsx2csv.convert(outfile, sheetid)
File "/usr/local/bin/xlsx2csv", line 221, in convert
self._convert(sheetid, outfile)
File "/usr/local/bin/xlsx2csv", line 341, in _convert
sheet.to_csv(writer)
File "/usr/local/bin/xlsx2csv", line 766, in to_csv
self.parser.ParseFile(self.filehandle)
File "/usr/local/bin/xlsx2csv", line 783, in handleCharData
xfs_numfmt = self.styles.cellXfs[s]
IndexError: list index out of range
closed time in 2 months
ionstudiopush eventdilshod/xlsx2csv
commit sha 651d8790e145876f8f4c373aac528e9b2b0c9c94
make it to work for weird xlsx file
push time in 2 months
pull request commentdilshod/xlsx2csv
Issue #207: Fix numFmtID when chk_exists returns None
@dilshod
Does this request make sense? Do you need more clarification on it?
comment created time in 2 months