
Security News
Python Adopts Standard Lock File Format for Reproducible Installs
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
= Sitemaps
Setup a config yaml file. I will download & compress your sitemaps!
Sitemaps provides an executable that will take a configuration yaml file. When runned it will download and gzip-compress your sitemaps ready for production!
Basically the idea is that you do not want your production server to compile the xml every single time, and on top of that you do not want to (gzip) your sitemap on the fly nor tell your web-server to do that for every single request.
So we precompile, the sitemaps and compress them in a "generator" machine and store the static gziped-sitemaps on the webserver.
Sitemaps provides a simple way to do this, put the name of your 'generator-machine' and setup your production domain, subdirectories and sitemap-index (sitemap of sitemaps) will be dinamically generated for you. so all you have to do is execute and copy to your web-servers!
a sample robots file is also generated for you, you can simply cat this and append it to your existing robots.txt file or simply use it as a reference if you are generating it dinamically.
By Kazuyoshi Tlacaelel
Run..
$ sitemaps config.yml
Enjoy!
$ tree sitemaps
sitemaps
|-- downloads
| -- communities.xml |-- index.xml |-- index.xml.gz |-- robots.txt
-- sitemaps
`-- communities.xml.gz
2 directories, 5 files
== Dependancies
require 'net/http' require 'yaml' require 'zlib' require 'builder'
== Features
automatic generation of sitemap indexes ( a sitemap of sitemaps )
$ cat sitemaps/index.xml
http://example.com/sitemaps/communities.xml.gz 2009-09-15sample robots.txt generation
download of sitemaps + compression
$ tree sitemaps
sitemaps
|-- downloads
| -- communities.xml |-- index.xml |-- index.xml.gz |-- robots.txt
-- sitemaps
`-- communities.xml.gz
2 directories, 5 files
The config file
configuration:
# Machine that generates your sitemaps
# do not prefix "http://" nor append the port
generator: localhost
# The http-port of your generator
generator_port: 3000
# The time to wait for each sitemap to be received
generator_timeout: 999
# Domain from where the sitemaps will be available.
# It is important that you do not append the last slash
# otherwise you may get an error message
#
# NG
# http://example.com/
#
# OK
# http://example.com
#
domain: http://example.com
# Path to sitemaps to be compiled on "generator".
# For example: if you have the following url
#
# http://localhost:3000/sitemap_for/users.xml
#
# The target must be specified as such
#
# Note: you can have multiple targets
#
targets:
- /sitemap_for/users.xml
# Directory where compressed maps will be placed.
#
# Its a good idea to use a sub-path in your domain.
#
# For example:
# (your dump_dir could be sitemaps for the following url)
#
# http://example.com/sitemaps
#
dump_dir: sitemaps
== Install
$ gem sources -a http://gems.github.com
$ gem install ktlacaelel-sitemaps
== Note on Patches/Pull Requests
== Ruby versions
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]
(havent tried any other let me know if you have any problems)
== Tested under
== Tests only the download and compression part have no tests but the api is pretty stable
== Copyright
MIT LICENSE
Copyright (c) 2009 kazuyoshi tlacaelel. See "LICENSE" file for details.
FAQs
Unknown package
We found that sitemaps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.