Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flask_minijson
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
flask_minijson
Commits
c3a527c0
Unverified
Commit
c3a527c0
authored
1 year ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
adapt for Flask 3.0.x, v0.3
parent
496d3ff4
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
LICENSE
+1
-0
1 addition, 0 deletions
LICENSE
Vagrantfile
+31
-0
31 additions, 0 deletions
Vagrantfile
flask_minijson.py
+6
-1
6 additions, 1 deletion
flask_minijson.py
setup.cfg
+2
-2
2 additions, 2 deletions
setup.cfg
with
42 additions
and
3 deletions
.gitignore
+
2
−
0
View file @
c3a527c0
...
@@ -17,6 +17,8 @@ eggs/
...
@@ -17,6 +17,8 @@ eggs/
lib/
lib/
lib64/
lib64/
parts/
parts/
.idea/
.vagrant/
sdist/
sdist/
var/
var/
wheels/
wheels/
...
...
This diff is collapsed.
Click to expand it.
LICENSE
+
1
−
0
View file @
c3a527c0
MIT License
MIT License
Copyright (c) 2021 Dronehub Group sp. z o. o.
Copyright (c) 2021 Dronehub Group sp. z o. o.
Copyright (c) 2024 Piotr Maślanka
Permission is hereby granted, free of charge, to any person obtaining a copy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and associated documentation files (the "Software"), to deal
...
...
This diff is collapsed.
Click to expand it.
Vagrantfile
0 → 100644
+
31
−
0
View file @
c3a527c0
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant
.
configure
(
"2"
)
do
|
config
|
config
.
vm
.
box
=
"debian/bullseye64"
# Rabbit MQ management
config
.
vm
.
network
"forwarded_port"
,
guest:
15672
,
host:
15672
,
auto_correct:
true
# HTTP for viewing coverage reports
config
.
vm
.
network
"forwarded_port"
,
guest:
80
,
host:
8765
config
.
vm
.
provision
"shell"
,
inline:
<<-
SHELL
apt-get update
# Python
apt-get install -y htop curl python3-pip build-essential python3 python3-setuptools
sudo pip3 install --upgrade pip setuptools
# Install deps
sudo pip3 install -r /vagrant/requirements.txt
sudo pip3 install nose2[coverage_plugin] coverage mock yapf nose2
# .bashrc for default user
echo """# .bashrc
cd /vagrant""" > /home/vagrant/.bashrc
SHELL
end
This diff is collapsed.
Click to expand it.
flask_minijson.py
+
6
−
1
View file @
c3a527c0
...
@@ -2,7 +2,12 @@ import typing as tp
...
@@ -2,7 +2,12 @@ import typing as tp
import
minijson
import
minijson
from
flask
import
Flask
from
flask
import
Flask
from
flask_json
import
JsonRequest
try
:
from
flask_json
import
JsonRequest
except
ImportError
:
# we must be running on a newer version of Flask-JSON
from
flask_json
import
FlaskJSONRequest
as
JsonRequest
class
MiniJSONRequest
(
JsonRequest
):
class
MiniJSONRequest
(
JsonRequest
):
...
...
This diff is collapsed.
Click to expand it.
setup.cfg
+
2
−
2
View file @
c3a527c0
# coding:
utf-8
# coding:
utf-8
[metadata]
[metadata]
version
= 0.
2
version
= 0.
3
name
= flask-minijson
name
= flask-minijson
long_description
= file: README.md
long_description
= file: README.md
long_description_content_type
= text/markdown; charset=UTF-8
long_description_content_type
= text/markdown; charset=UTF-8
author
= Piotr Maślanka
author
= Piotr Maślanka
license_files
=
license_files
=
LICENSE
LICENSE
author_email
= p
iotr.
maslanka@
dronehub.ai
author_email
= pmaslanka@
smok.co
description
= A Flask extension to allow client's to submit data using the MiniJSON codec
description
= A Flask extension to allow client's to submit data using the MiniJSON codec
url
= https://github.com/Dronehub/flask-minijson
url
= https://github.com/Dronehub/flask-minijson
project_urls
=
project_urls
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment