apipie / apypie Goto Github PK
View Code? Open in Web Editor NEWApipie bindings for Python
Home Page: https://apypie.readthedocs.io/en/latest/
License: MIT License
Apipie bindings for Python
Home Page: https://apypie.readthedocs.io/en/latest/
License: MIT License
See scan.coverity.com
Let's expose the validations so we can use them in Ansible. One problem is that the validator
field just contains a human description, we could parse it, but it would be nice if we didn't have to.
See more at theforeman/foreman-ansible-modules#296 (comment)
e.g. when the user tries to access an undefined resource, we only throw a KeyError
, we could add a message saying "foo not found, you can only use bar and bax".
this should save a bit of traffic in requests.
FAM will need to use VCR with decode_compressed_response
to have the tapes uncompressed and readable
Include license file for those, who consume the release from PyPI.
apypie dependencies do it:
$ find ~/.virtualenvs/apypie/ -type f -name "*LICENSE*"
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/wheel-0.34.2.dist-info/LICENSE.txt
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/setuptools-46.1.3.dist-info/LICENSE
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/urllib3-1.25.8.dist-info/LICENSE.txt
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/pip-20.0.2.dist-info/LICENSE.txt
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/certifi-2020.4.5.dist-info/LICENSE
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/idna-2.9.dist-info/LICENSE.rst
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/requests-2.23.0.dist-info/LICENSE
We currently ignore the hash, thats good for FAM tests, but means we never notice if the file changes on the server
We should set the user agent header
I think this could be done with a fixture:
@pytest.fixture
def temporary_environ():
old_environ = os.environ.copy()
yield
os.environ = old_environ
Then on the test:
@pytest.mark.usefixtures("temporary_environ")
def test_init_with_existing_cachedir(fixture_dir, requests_mock, tmpdir):
I think you can even stack it:
@pytest.fixture
def temporary_xdg_cache_home(tmpdir):
old_environ = os.environ.copy()
os.environ['XDG_CACHE_HOME'] = tmpdir.strpath
yield
os.environ = old_environ
Since move to GH it's not properly updated anymore
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.