Comments (8)
This is a good addition. I will add it after I'm done with the 1.4 release, which should be out in the next day or two.
from pyrax.
Thanks for the quick response.
On Wed, May 29, 2013 at 8:15 AM, Ed Leafe [email protected] wrote:
This is a good addition. I will add it after I'm done with the 1.4
release, which should be out in the next day or two.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/76#issuecomment-18615280
.
Best Regards
Boyd Hemphill
Chief Systems Architect
www.feedmagnet.com
[email protected]
(512) 470-6146
from pyrax.
Added in 1.4.3; commit 5fb3ad8
from pyrax.
(Please do not read the below as complaining, it is an observation about a potential blind spot)
I have tested this in that I can run it with the code and don't get an error.
However I cannot find a way to read the headers of a file at all. Neither the classic control panel or the new one provide the header info. The new CP does not even seem to provide meta data.
I am not sure if it is relevant to you to that success is "untestable" for this change.
That said, thanks for work on this! I will know in 7 days if this worked or not.
from pyrax.
That information is not available via the API, so there is no way to expose it in pyrax.
To test, I created some small files with various TTLs, and tested how long it took for each to disappear from a listing. They all were deleted within a minute of the expected time. If you find out anything after your 7 days have elapsed, please let me know. ;-)
from pyrax.
It's possible to detect when an object will be deleted via the Cloud Files API. Just issue an HTTP HEAD on the object in question and look for the X-Delete-At header.
For example:
auth=my_auth_token
files=rackspace_cloud_files_endpoint_associated_with_my_account
http put $files/container/delete-me-soon x-auth-token:$auth x-delete-after:30
# some HTTPie output
http head $files/container/delete-me-soon x-auth-token:$auth
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 2109
Content-Type: application/json; charset=utf-8
Date: Thu, 06 Jun 2013 01:05:07 GMT
Etag: 6cbad8ca5dd0a5d0a2de722860b02855
Last-Modified: Thu, 06 Jun 2013 01:04:59 GMT
X-Delete-At: 1370480729
X-Timestamp: 1370480699.48837
X-Trans-Id: tx9734cfbb922c466e95340331c95b51c3
The X-Delete-After is converted to X-Delete-At internally.
from pyrax.
What I meant is that it is not exposed directly in python-swiftclient as a direct call that pyrax could wrap. I could hack the head_object()
method of the connection class to look for that header, but I'm not sure how fragile that would be.
from pyrax.
Ah, thanks for clarifying! :)
I've not dived into the python-swiftclient sources, so I can't say either way. I'd love to hear from the project's maintainer on adding support for exposing that information.
from pyrax.
Related Issues (20)
- CloudFiles set_temp_url_key and get_temp_url_key Bug HOT 2
- pyrax.cloud_dns.list limited to 100 HOT 1
- requests 2.11.0 breaks pyrax ttl HOT 2
- Support for specific python-novaclient version HOT 14
- pyrax - out of date HOT 2
- Search for [email protected] and remove HOT 3
- delete operations don't return anything
- Remove pbr version pinning HOT 4
- Handling whitespace using pyrax
- 💖 Open for maintainers : adopt pyrax HOT 6
- Switch from using pep8 to flake8 for syntax/linting HOT 1
- Sporadic CI flakiness HOT 1
- pyrax is required for this module
- pyrax.exceptions.NotFound: No CloudDNSDomain matching: {'name': u'com'}. (HTTP 404)
- rackspacesdk doesn't work HOT 2
- why cant install wrapt module
- Release the latest code as 1.9.9 HOT 1
- Proposing a PR to fix a few small typos HOT 2
- TypeError __init__() got an unexpected keyword argument 'username'
- Tenant_id parsing is not working due to different response from API_KEY authentication in some usser HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrax.